Interface IConsentService
- Namespace
- Duende.IdentityServer.Services
- Assembly
- Duende.IdentityServer.dll
Service to retrieve and update consent.
public interface IConsentService
Methods
RequiresConsentAsync(ClaimsPrincipal, Client, IEnumerable<ParsedScopeValue>)
Checks if consent is required.
Task<bool> RequiresConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable<ParsedScopeValue> parsedScopes)
Parameters
subject
ClaimsPrincipalThe user.
client
ClientThe client.
parsedScopes
IEnumerable<ParsedScopeValue>The parsed scopes.
Returns
UpdateConsentAsync(ClaimsPrincipal, Client, IEnumerable<ParsedScopeValue>)
Updates the consent.
Task UpdateConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable<ParsedScopeValue> parsedScopes)
Parameters
subject
ClaimsPrincipalThe subject.
client
ClientThe client.
parsedScopes
IEnumerable<ParsedScopeValue>The parsed scopes.