Table of Contents

Class DefaultCustomTokenValidator

Namespace
Fdyay.IdentityServer.Validation
Assembly
Fdyay.IdentityServer.Core.dll

Lets every token stand as validated. Duende's default, open to be derived from as Duende's is.

public class DefaultCustomTokenValidator : ICustomTokenValidator
Inheritance
DefaultCustomTokenValidator
Implements
Inherited Members

Methods

ValidateAccessTokenAsync(AccessTokenValidationResult, CancellationToken)

Runs the host's checks on an access token this server has validated.

public virtual Task<AccessTokenValidationResult> ValidateAccessTokenAsync(AccessTokenValidationResult result, CancellationToken ct)

Parameters

result AccessTokenValidationResult

The successful result of this server's own validation.

ct CancellationToken

Cancels the checks.

Returns

Task<AccessTokenValidationResult>

The result that stands: result, one with other claims, or a refusal.

Remarks

Returns result unchanged.

ValidateIdentityTokenAsync(IdentityTokenValidationResult, CancellationToken)

Runs the host's checks on an identity token hint this server has validated.

public virtual Task<IdentityTokenValidationResult> ValidateIdentityTokenAsync(IdentityTokenValidationResult result, CancellationToken ct)

Parameters

result IdentityTokenValidationResult

The successful result of this server's own validation.

ct CancellationToken

Cancels the checks.

Returns

Task<IdentityTokenValidationResult>

The result that stands: result, one with other claims, or a refusal.

Remarks

Returns result unchanged.