Table of Contents

Class AuthorizeEndpoint

Namespace
Fdyay.IdentityServer.Endpoints
Assembly
Fdyay.IdentityServer.AspNetCore.dll

The OpenID Connect / OAuth 2.0 authorize endpoint (authorization code flow).

public sealed class AuthorizeEndpoint : IEndpointHandler
Inheritance
AuthorizeEndpoint
Implements
Inherited Members

Constructors

AuthorizeEndpoint(IAuthorizeRequestValidator, IAuthorizeInteractionResponseGenerator, IAuthorizeResponseGenerator, IUiLocalesService, IMessageStore<ErrorMessage>, IMessageStore<ConsentMessage>, IPushedAuthorizationRequestStore, IClientStore, IUserSession, IRequestObjectValidator, ISessionStateService, IIssuerNameService, IOptions<IdentityServerOptions>, IEventService, TimeProvider, ILogger<AuthorizeEndpoint>)

The constructor from 0.149.0 to 0.160.0, kept for a host that builds the endpoint itself.

public AuthorizeEndpoint(IAuthorizeRequestValidator validator, IAuthorizeInteractionResponseGenerator interaction, IAuthorizeResponseGenerator responses, IUiLocalesService uiLocales, IMessageStore<ErrorMessage> errorMessages, IMessageStore<ConsentMessage> consentMessages, IPushedAuthorizationRequestStore pushedRequests, IClientStore clients, IUserSession userSession, IRequestObjectValidator requestObjects, ISessionStateService sessionState, IIssuerNameService issuerNameService, IOptions<IdentityServerOptions> options, IEventService events, TimeProvider time, ILogger<AuthorizeEndpoint> logger)

Parameters

validator IAuthorizeRequestValidator
interaction IAuthorizeInteractionResponseGenerator
responses IAuthorizeResponseGenerator
uiLocales IUiLocalesService
errorMessages IMessageStore<ErrorMessage>
consentMessages IMessageStore<ConsentMessage>
pushedRequests IPushedAuthorizationRequestStore
clients IClientStore
userSession IUserSession
requestObjects IRequestObjectValidator
sessionState ISessionStateService
issuerNameService IIssuerNameService
options IOptions<IdentityServerOptions>
events IEventService
time TimeProvider
logger ILogger<AuthorizeEndpoint>

Remarks

Reads the consent page's decisions through the default IConsentMessageStore over consentMessages and the current request's consent cookie, as before 0.161.0.

AuthorizeEndpoint(IAuthorizeRequestValidator, IAuthorizeInteractionResponseGenerator, IAuthorizeResponseGenerator, IUiLocalesService, IMessageStore<ErrorMessage>, IConsentMessageStore, IPushedAuthorizationRequestStore, IClientStore, IUserSession, IRequestObjectValidator, ISessionStateService, IIssuerNameService, IOptions<IdentityServerOptions>, IEventService, TimeProvider, ILogger<AuthorizeEndpoint>)

The constructor that takes Duende's consent message store, since 0.161.0.

[ActivatorUtilitiesConstructor]
public AuthorizeEndpoint(IAuthorizeRequestValidator validator, IAuthorizeInteractionResponseGenerator interaction, IAuthorizeResponseGenerator responses, IUiLocalesService uiLocales, IMessageStore<ErrorMessage> errorMessages, IConsentMessageStore consentMessages, IPushedAuthorizationRequestStore pushedRequests, IClientStore clients, IUserSession userSession, IRequestObjectValidator requestObjects, ISessionStateService sessionState, IIssuerNameService issuerNameService, IOptions<IdentityServerOptions> options, IEventService events, TimeProvider time, ILogger<AuthorizeEndpoint> logger)

Parameters

validator IAuthorizeRequestValidator
interaction IAuthorizeInteractionResponseGenerator
responses IAuthorizeResponseGenerator
uiLocales IUiLocalesService
errorMessages IMessageStore<ErrorMessage>
consentMessages IConsentMessageStore
pushedRequests IPushedAuthorizationRequestStore
clients IClientStore
userSession IUserSession
requestObjects IRequestObjectValidator
sessionState ISessionStateService
issuerNameService IIssuerNameService
options IOptions<IdentityServerOptions>
events IEventService
time TimeProvider
logger ILogger<AuthorizeEndpoint>

AuthorizeEndpoint(IAuthorizeRequestValidator, IAuthorizationCodeStore, IAuthorizeInteractionResponseGenerator, IMessageStore<ErrorMessage>, IMessageStore<ConsentMessage>, IPushedAuthorizationRequestStore, IClientStore, IUserSession, IRequestObjectValidator, ISessionStateService, IIssuerNameService, IOptions<IdentityServerOptions>, IEventService, TimeProvider, ILogger<AuthorizeEndpoint>)

The constructor before 0.149.0, kept for a host that builds the endpoint itself.

public AuthorizeEndpoint(IAuthorizeRequestValidator validator, IAuthorizationCodeStore codes, IAuthorizeInteractionResponseGenerator interaction, IMessageStore<ErrorMessage> errorMessages, IMessageStore<ConsentMessage> consentMessages, IPushedAuthorizationRequestStore pushedRequests, IClientStore clients, IUserSession userSession, IRequestObjectValidator requestObjects, ISessionStateService sessionState, IIssuerNameService issuerNameService, IOptions<IdentityServerOptions> options, IEventService events, TimeProvider time, ILogger<AuthorizeEndpoint> logger)

Parameters

validator IAuthorizeRequestValidator
codes IAuthorizationCodeStore
interaction IAuthorizeInteractionResponseGenerator
errorMessages IMessageStore<ErrorMessage>
consentMessages IMessageStore<ConsentMessage>
pushedRequests IPushedAuthorizationRequestStore
clients IClientStore
userSession IUserSession
requestObjects IRequestObjectValidator
sessionState ISessionStateService
issuerNameService IIssuerNameService
options IOptions<IdentityServerOptions>
events IEventService
time TimeProvider
logger ILogger<AuthorizeEndpoint>

Remarks

Answers through the default AuthorizeResponseGenerator over codes, and tells no interaction page the request's ui_locales, as before 0.149.0.

Fields

RedirectUriProperty

The structured property the requested redirect URI is logged under.

public const string RedirectUriProperty = "RedirectUri"

Field Value

string

Methods

ProcessAsync(HttpContext)

Processes the request, or returns null to pass the request through.

public Task<IEndpointResult?> ProcessAsync(HttpContext context)

Parameters

context HttpContext

Returns

Task<IEndpointResult>