Table of Contents

Class DefaultCustomTokenValidator

Namespace
Duende.IdentityServer.Validation
Assembly
Duende.IdentityServer.dll

Default custom token validator

public class DefaultCustomTokenValidator : ICustomTokenValidator
Inheritance
DefaultCustomTokenValidator
Implements
Inherited Members

Constructors

DefaultCustomTokenValidator()

public DefaultCustomTokenValidator()

Fields

Clients

The client store

protected readonly IClientStore Clients

Field Value

IClientStore

Logger

The logger

protected readonly ILogger Logger

Field Value

ILogger

Profile

The user service

protected readonly IProfileService Profile

Field Value

IProfileService

Methods

ValidateAccessTokenAsync(TokenValidationResult)

Custom validation logic for access tokens.

public virtual Task<TokenValidationResult> ValidateAccessTokenAsync(TokenValidationResult result)

Parameters

result TokenValidationResult

The validation result so far.

Returns

Task<TokenValidationResult>

The validation result

ValidateIdentityTokenAsync(TokenValidationResult)

Custom validation logic for identity tokens.

public virtual Task<TokenValidationResult> ValidateIdentityTokenAsync(TokenValidationResult result)

Parameters

result TokenValidationResult

The validation result so far.

Returns

Task<TokenValidationResult>

The validation result