Class EndSessionEndpoint
- Namespace
- Fdyay.IdentityServer.Endpoints
- Assembly
- Fdyay.IdentityServer.AspNetCore.dll
The OpenID Connect RP-initiated logout (end session) endpoint.
public sealed class EndSessionEndpoint : IEndpointHandler
- Inheritance
-
EndSessionEndpoint
- Implements
- Inherited Members
Remarks
The session is only destroyed for a request that proves it came from a relying party — a
verifiable id_token_hint. Anything else is handed to the logout page, which asks the
user to confirm, so a cross-site GET cannot end the session.
Constructors
EndSessionEndpoint(IEndSessionRequestValidator, ILogoutContextFactory, ISignOutService, IUiLocalesService, IOptions<IdentityServerOptions>)
Creates the endpoint from its services, as the container resolves it.
[ActivatorUtilitiesConstructor]
public EndSessionEndpoint(IEndSessionRequestValidator requestValidator, ILogoutContextFactory logoutContexts, ISignOutService signOut, IUiLocalesService uiLocales, IOptions<IdentityServerOptions> options)
Parameters
requestValidatorIEndSessionRequestValidatorValidates the end session request, its
id_token_hintamong it.logoutContextsILogoutContextFactoryBuilds the logout context the logout page is handed.
signOutISignOutServiceEnds the user's session for a request proven to come from a relying party.
uiLocalesIUiLocalesServicePasses the request's
ui_localeson to the logout page.optionsIOptions<IdentityServerOptions>The server options: where the logout page is and the parameter it takes the logout id in.
EndSessionEndpoint(IEndSessionRequestValidator, ILogoutContextFactory, ISignOutService, IOptions<IdentityServerOptions>)
The constructor before 0.156.0, kept for a host that builds the endpoint itself.
public EndSessionEndpoint(IEndSessionRequestValidator requestValidator, ILogoutContextFactory logoutContexts, ISignOutService signOut, IOptions<IdentityServerOptions> options)
Parameters
requestValidatorIEndSessionRequestValidatorlogoutContextsILogoutContextFactorysignOutISignOutServiceoptionsIOptions<IdentityServerOptions>
Remarks
Tells the logout page no ui_locales, as before 0.156.0.
Methods
ProcessAsync(HttpContext)
Processes the request, or returns null to pass the request through.
public Task<IEndpointResult?> ProcessAsync(HttpContext context)
Parameters
contextHttpContext