Interface ICustomTokenRequestValidator
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.Core.dll
A host's own checks on a token request, after this server's.
public interface ICustomTokenRequestValidator
Remarks
Duende 8.0.1's ICustomTokenRequestValidator, measured: called for every grant once the request is valid, it
may change the validated request, add members to the response through
CustomResponse, or refuse the request — the client is told the error,
description and custom members it gave. Registered with AddCustomTokenRequestValidator<T>(); the
default accepts everything and adds nothing.
Methods
ValidateAsync(CustomTokenRequestValidationContext, CancellationToken)
Runs the host's checks, refusing the request by setting an error result on context.
Task ValidateAsync(CustomTokenRequestValidationContext context, CancellationToken ct)
Parameters
contextCustomTokenRequestValidationContextThe validated request, whose Result the validator may replace.
ctCancellationTokenCancels the validation.
Returns
- Task
A task that completes when the checks have run.