Class AuthorizeInteractionResponseGenerator
- Namespace
- Duende.IdentityServer.ResponseHandling
- Assembly
- Duende.IdentityServer.dll
Default logic for determining if user must login or consent when making requests to the authorization endpoint.
public class AuthorizeInteractionResponseGenerator : IAuthorizeInteractionResponseGenerator
- Inheritance
-
AuthorizeInteractionResponseGenerator
- Implements
- Inherited Members
Constructors
AuthorizeInteractionResponseGenerator(IdentityServerOptions, IClock, ILogger<AuthorizeInteractionResponseGenerator>, IConsentService, IProfileService)
Initializes a new instance of the AuthorizeInteractionResponseGenerator class.
public AuthorizeInteractionResponseGenerator(IdentityServerOptions options, IClock clock, ILogger<AuthorizeInteractionResponseGenerator> logger, IConsentService consent, IProfileService profile)
Parameters
options
IdentityServerOptionsclock
IClockThe clock.
logger
ILogger<AuthorizeInteractionResponseGenerator>The logger.
consent
IConsentServiceThe consent.
profile
IProfileServiceThe profile.
- See Also
Fields
Clock
The clock
protected readonly IClock Clock
Field Value
- See Also
Consent
The consent service.
protected readonly IConsentService Consent
Field Value
- See Also
Logger
The logger.
protected readonly ILogger Logger
Field Value
- See Also
Options
The options
protected readonly IdentityServerOptions Options
Field Value
- See Also
Profile
The profile service.
protected readonly IProfileService Profile
Field Value
- See Also
Methods
ProcessConsentAsync(ValidatedAuthorizeRequest, ConsentResponse)
Processes the consent logic.
protected virtual Task<InteractionResponse> ProcessConsentAsync(ValidatedAuthorizeRequest request, ConsentResponse consent = null)
Parameters
request
ValidatedAuthorizeRequestThe request.
consent
ConsentResponseThe consent.
Returns
Exceptions
- ArgumentNullException
- ArgumentException
Invalid PromptMode
- See Also
ProcessCreateAccountAsync(ValidatedAuthorizeRequest)
Processes the create account logic.
protected virtual Task<InteractionResponse> ProcessCreateAccountAsync(ValidatedAuthorizeRequest request)
Parameters
request
ValidatedAuthorizeRequestThe request.
Returns
- See Also
ProcessInteractionAsync(ValidatedAuthorizeRequest, ConsentResponse)
Processes the interaction logic.
public virtual Task<InteractionResponse> ProcessInteractionAsync(ValidatedAuthorizeRequest request, ConsentResponse consent = null)
Parameters
request
ValidatedAuthorizeRequestThe request.
consent
ConsentResponseThe consent.
Returns
- See Also
ProcessLoginAsync(ValidatedAuthorizeRequest)
Processes the login logic.
protected virtual Task<InteractionResponse> ProcessLoginAsync(ValidatedAuthorizeRequest request)
Parameters
request
ValidatedAuthorizeRequestThe request.
Returns
- See Also