Class DefaultUserConsentStore
- Namespace
- Duende.IdentityServer.Stores
- Assembly
- Duende.IdentityServer.dll
Default user consent store.
public class DefaultUserConsentStore : DefaultGrantStore<Consent>, IUserConsentStore
- Inheritance
-
DefaultGrantStore<Consent>DefaultUserConsentStore
- Implements
-
IUserConsentStore
- Inherited Members
Constructors
DefaultUserConsentStore(IPersistedGrantStore, IPersistentGrantSerializer, IHandleGenerationService, ILogger<DefaultUserConsentStore>)
Initializes a new instance of the DefaultUserConsentStore class.
public DefaultUserConsentStore(IPersistedGrantStore store, IPersistentGrantSerializer serializer, IHandleGenerationService handleGenerationService, ILogger<DefaultUserConsentStore> logger)
Parameters
store
IPersistedGrantStoreThe store.
serializer
IPersistentGrantSerializerThe serializer.
handleGenerationService
IHandleGenerationServiceThe handle generation service.
logger
ILogger<DefaultUserConsentStore>The logger.
Methods
GetUserConsentAsync(string, string)
Gets the user consent asynchronous.
public Task<Consent> GetUserConsentAsync(string subjectId, string clientId)
Parameters
Returns
- Task<Consent>
RemoveUserConsentAsync(string, string)
Removes the user consent asynchronous.
public Task RemoveUserConsentAsync(string subjectId, string clientId)
Parameters
Returns
StoreUserConsentAsync(Consent)
Stores the user consent asynchronous.
public Task StoreUserConsentAsync(Consent consent)
Parameters
consent
ConsentThe consent.