Skip to content
Discussion options

You must be logged in to vote

Hi @alexax578 ! The call to the builder.Services.AddIdentityServer() extension method configures CookieAuthenticationOptions, but you could use IConfigureOptions to update the configuration.

You could implement a custom IConfigureNamedOptions to update configuration for this scheme:

// Register ConfigureIdentityServerCookieOptions
builder.Services.AddSingleton<IConfigureOptions<CookieAuthenticationOptions>, ConfigureIdentityServerCookieOptions>();

// ConfigureIdentityServerCookieOptions
public class ConfigureIdentityServerCookieOptions : IConfigureNamedOptions<CookieAuthenticationOptions>
{
    public void Configure(CookieAuthenticationOptions options)
    {
    }

    public void Configure

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexax578
Comment options

Answer selected by alexax578
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants