Table of Contents

Interface IPersistedGrantService

Namespace
Duende.IdentityServer.Services
Assembly
Duende.IdentityServer.dll

Implements persisted grant logic

public interface IPersistedGrantService

Methods

GetAllGrantsAsync(string)

Gets all grants for a given subject ID.

Task<IEnumerable<Grant>> GetAllGrantsAsync(string subjectId)

Parameters

subjectId string

The subject identifier.

Returns

Task<IEnumerable<Grant>>

RemoveAllGrantsAsync(string, string?, string?)

Removes all grants for a given subject id, and optionally client id and session id combination.

Task RemoveAllGrantsAsync(string subjectId, string? clientId = null, string? sessionId = null)

Parameters

subjectId string

The subject identifier.

clientId string

The client identifier (optional).

sessionId string

The session id (optional).

Returns

Task