/// <inheritdoc />
    public void PostConfigure(string name, CookieAuthenticationOptions options)
    {
        if (name == _scheme)
        {
            LicenseValidator.ValidateServerSideSessions();

            var sessionStore = _httpContextAccessor.HttpContext !.RequestServices.GetService <IServerSideSessionStore>();
            if (sessionStore is InMemoryServerSideSessionStore)
            {
                var logger = _httpContextAccessor.HttpContext !.RequestServices.GetRequiredService <ILoggerFactory>().CreateLogger("Duende.IdentityServer.Startup");
                logger.LogInformation("You are using the in-memory version of the user session store. This will store user authentication sessions server side, but in memory only. If you are using this feature in production, you want to switch to a different store implementation.");
            }

            options.SessionStore = new TicketStoreShim(_httpContextAccessor);
        }
    }