Class AuthorizeResponseGenerator
- Namespace
- Duende.IdentityServer.ResponseHandling
- Assembly
- Duende.IdentityServer.dll
The authorize response generator
public class AuthorizeResponseGenerator : IAuthorizeResponseGenerator
- Inheritance
-
AuthorizeResponseGenerator
- Implements
- Inherited Members
Constructors
AuthorizeResponseGenerator(IdentityServerOptions, IClock, ITokenService, IKeyMaterialService, IAuthorizationCodeStore, ILogger<AuthorizeResponseGenerator>, IEventService)
Initializes a new instance of the AuthorizeResponseGenerator class.
public AuthorizeResponseGenerator(IdentityServerOptions options, IClock clock, ITokenService tokenService, IKeyMaterialService keyMaterialService, IAuthorizationCodeStore authorizationCodeStore, ILogger<AuthorizeResponseGenerator> logger, IEventService events)
Parameters
options
IdentityServerOptionsThe options.
clock
IClockThe clock.
tokenService
ITokenServiceThe token service.
keyMaterialService
IKeyMaterialServiceauthorizationCodeStore
IAuthorizationCodeStoreThe authorization code store.
logger
ILogger<AuthorizeResponseGenerator>The logger.
events
IEventServiceThe events.
- See Also
Fields
AuthorizationCodeStore
The authorization code store
protected readonly IAuthorizationCodeStore AuthorizationCodeStore
Field Value
- IAuthorizationCodeStore
- See Also
Clock
The clock
protected readonly IClock Clock
Field Value
- See Also
Events
The event service
protected readonly IEventService Events
Field Value
- See Also
KeyMaterialService
The key material service
protected readonly IKeyMaterialService KeyMaterialService
Field Value
- See Also
Logger
The logger
protected readonly ILogger Logger
Field Value
- See Also
Options
The options
protected IdentityServerOptions Options
Field Value
- See Also
TokenService
The token service
protected readonly ITokenService TokenService
Field Value
- See Also
Methods
CreateCodeAsync(ValidatedAuthorizeRequest)
Creates an authorization code
protected virtual Task<AuthorizationCode> CreateCodeAsync(ValidatedAuthorizeRequest request)
Parameters
request
ValidatedAuthorizeRequest
Returns
- Task<AuthorizationCode>
- See Also
CreateCodeFlowResponseAsync(ValidatedAuthorizeRequest)
Creates the response for a code flow request
protected virtual Task<AuthorizeResponse> CreateCodeFlowResponseAsync(ValidatedAuthorizeRequest request)
Parameters
request
ValidatedAuthorizeRequest
Returns
- See Also
CreateHybridFlowResponseAsync(ValidatedAuthorizeRequest)
Creates the response for a hybrid flow request
protected virtual Task<AuthorizeResponse> CreateHybridFlowResponseAsync(ValidatedAuthorizeRequest request)
Parameters
request
ValidatedAuthorizeRequest
Returns
- See Also
CreateImplicitFlowResponseAsync(ValidatedAuthorizeRequest, string)
Creates the response for a implicit flow request
protected virtual Task<AuthorizeResponse> CreateImplicitFlowResponseAsync(ValidatedAuthorizeRequest request, string authorizationCode = null)
Parameters
request
ValidatedAuthorizeRequestauthorizationCode
string
Returns
- See Also
CreateResponseAsync(ValidatedAuthorizeRequest)
Creates the response
public virtual Task<AuthorizeResponse> CreateResponseAsync(ValidatedAuthorizeRequest request)
Parameters
request
ValidatedAuthorizeRequestThe request.
Returns
Exceptions
- InvalidOperationException
invalid grant type: " + request.GrantType
- See Also