Table of Contents

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 ClaimsPrincipal

The user.

client Client

The client.

parsedScopes IEnumerable<ParsedScopeValue>

The parsed scopes.

Returns

Task<bool>

Boolean if consent is required.

UpdateConsentAsync(ClaimsPrincipal, Client, IEnumerable<ParsedScopeValue>)

Updates the consent.

Task UpdateConsentAsync(ClaimsPrincipal subject, Client client, IEnumerable<ParsedScopeValue> parsedScopes)

Parameters

subject ClaimsPrincipal

The subject.

client Client

The client.

parsedScopes IEnumerable<ParsedScopeValue>

The parsed scopes.

Returns

Task