Table of Contents

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 IdentityServerOptions

The options.

clock IClock

The clock.

tokenService ITokenService

The token service.

keyMaterialService IKeyMaterialService
authorizationCodeStore IAuthorizationCodeStore

The authorization code store.

logger ILogger<AuthorizeResponseGenerator>

The logger.

events IEventService

The 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

IClock
See Also

Events

The event service

protected readonly IEventService Events

Field Value

IEventService
See Also

KeyMaterialService

The key material service

protected readonly IKeyMaterialService KeyMaterialService

Field Value

IKeyMaterialService
See Also

Logger

The logger

protected readonly ILogger Logger

Field Value

ILogger
See Also

Options

The options

protected IdentityServerOptions Options

Field Value

IdentityServerOptions
See Also

TokenService

The token service

protected readonly ITokenService TokenService

Field Value

ITokenService
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

Task<AuthorizeResponse>
See Also

CreateHybridFlowResponseAsync(ValidatedAuthorizeRequest)

Creates the response for a hybrid flow request

protected virtual Task<AuthorizeResponse> CreateHybridFlowResponseAsync(ValidatedAuthorizeRequest request)

Parameters

request ValidatedAuthorizeRequest

Returns

Task<AuthorizeResponse>
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 ValidatedAuthorizeRequest
authorizationCode string

Returns

Task<AuthorizeResponse>
See Also

CreateResponseAsync(ValidatedAuthorizeRequest)

Creates the response

public virtual Task<AuthorizeResponse> CreateResponseAsync(ValidatedAuthorizeRequest request)

Parameters

request ValidatedAuthorizeRequest

The request.

Returns

Task<AuthorizeResponse>

Exceptions

InvalidOperationException

invalid grant type: " + request.GrantType

See Also

See Also