Table of Contents

Class DefaultAuthorizationCodeStore

Namespace
Duende.IdentityServer.Stores
Assembly
Duende.IdentityServer.dll

Default authorization code store.

public class DefaultAuthorizationCodeStore : DefaultGrantStore<AuthorizationCode>, IAuthorizationCodeStore
Inheritance
DefaultGrantStore<AuthorizationCode>
DefaultAuthorizationCodeStore
Implements
IAuthorizationCodeStore
Inherited Members

Constructors

DefaultAuthorizationCodeStore(IPersistedGrantStore, IPersistentGrantSerializer, IHandleGenerationService, ILogger<DefaultAuthorizationCodeStore>)

Initializes a new instance of the DefaultAuthorizationCodeStore class.

public DefaultAuthorizationCodeStore(IPersistedGrantStore store, IPersistentGrantSerializer serializer, IHandleGenerationService handleGenerationService, ILogger<DefaultAuthorizationCodeStore> logger)

Parameters

store IPersistedGrantStore

The store.

serializer IPersistentGrantSerializer

The serializer.

handleGenerationService IHandleGenerationService

The handle generation service.

logger ILogger<DefaultAuthorizationCodeStore>

The logger.

Methods

GetAuthorizationCodeAsync(string)

Gets the authorization code asynchronous.

public Task<AuthorizationCode> GetAuthorizationCodeAsync(string code)

Parameters

code string

The code.

Returns

Task<AuthorizationCode>

RemoveAuthorizationCodeAsync(string)

Removes the authorization code asynchronous.

public Task RemoveAuthorizationCodeAsync(string code)

Parameters

code string

The code.

Returns

Task

StoreAuthorizationCodeAsync(AuthorizationCode)

Stores the authorization code asynchronous.

public Task<string> StoreAuthorizationCodeAsync(AuthorizationCode code)

Parameters

code AuthorizationCode

The code.

Returns

Task<string>