Table of Contents

Class UseAspNetIdentityCookieScheme

Namespace
Fdyay.IdentityServer.AspNetIdentity
Assembly
Fdyay.IdentityServer.AspNetIdentity.dll

Points a dynamic provider's sign-out at ASP.NET Core Identity's cookie when that cookie is the session.

public class UseAspNetIdentityCookieScheme : IPostConfigureOptions<DynamicProviderOptions>
Inheritance
UseAspNetIdentityCookieScheme
Implements
Inherited Members

Remarks

Duende 8.0.1's UseAspNetIdentityCookieScheme, measured. AddIdentity makes ApplicationScheme the default authenticate scheme, which makes it this server's session cookie; an upstream provider telling this server the user signed out there should end that session, not the idsrv cookie nobody is signed in to. A host that named SignOutScheme keeps what it named.

Constructors

UseAspNetIdentityCookieScheme(IOptions<AuthenticationOptions>)

Creates the post-configuration, as the container resolves it.

public UseAspNetIdentityCookieScheme(IOptions<AuthenticationOptions> authOptions)

Parameters

authOptions IOptions<AuthenticationOptions>

The host's authentication options, whose default authenticate scheme is read.

Methods

PostConfigure(string?, DynamicProviderOptions)

Sets SignOutScheme to ApplicationScheme when that is the default authenticate scheme and the host did not set the sign-out scheme itself.

public virtual void PostConfigure(string? name, DynamicProviderOptions options)

Parameters

name string

The options' name; every name is configured alike.

options DynamicProviderOptions

The dynamic provider options.

Exceptions

ArgumentNullException

options is null.