Table of Contents

Class DefaultUserConsentStore

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

Default user consent store.

public class DefaultUserConsentStore : DefaultGrantStore<Consent>, IUserConsentStore
Inheritance
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 IPersistedGrantStore

The store.

serializer IPersistentGrantSerializer

The serializer.

handleGenerationService IHandleGenerationService

The 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

subjectId string

The subject identifier.

clientId string

The client identifier.

Returns

Task<Consent>

RemoveUserConsentAsync(string, string)

Removes the user consent asynchronous.

public Task RemoveUserConsentAsync(string subjectId, string clientId)

Parameters

subjectId string

The subject identifier.

clientId string

The client identifier.

Returns

Task

Stores the user consent asynchronous.

public Task StoreUserConsentAsync(Consent consent)

Parameters

consent Consent

The consent.

Returns

Task