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
subjectClaimsPrincipalThe user.
clientClientThe client.
parsedScopesIEnumerable<ParsedScopeValue>The parsed scopes.
Returns
UpdateConsentAsync(ClaimsPrincipal, Client, IEnumerable<ParsedScopeValue>)
Updates the consent.
Task UpdateConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable<ParsedScopeValue> parsedScopes)
Parameters
subjectClaimsPrincipalThe subject.
clientClientThe client.
parsedScopesIEnumerable<ParsedScopeValue>The parsed scopes.