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
IPersistedGrantStoreThe store.
serializer
IPersistentGrantSerializerThe serializer.
handleGenerationService
IHandleGenerationServiceThe handle generation service.
logger
ILogger<DefaultAuthorizationCodeStore>The logger.
Methods
GetAuthorizationCodeAsync(string)
Gets the authorization code asynchronous.
public Task<AuthorizationCode> GetAuthorizationCodeAsync(string code)
Parameters
code
stringThe code.
Returns
- Task<AuthorizationCode>
RemoveAuthorizationCodeAsync(string)
Removes the authorization code asynchronous.
public Task RemoveAuthorizationCodeAsync(string code)
Parameters
code
stringThe code.
Returns
StoreAuthorizationCodeAsync(AuthorizationCode)
Stores the authorization code asynchronous.
public Task<string> StoreAuthorizationCodeAsync(AuthorizationCode code)
Parameters
code
AuthorizationCodeThe code.