Table of Contents

Interface ICustomAuthorizeRequestValidator

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

A host's own checks on an authorize request, after this server's.

public interface ICustomAuthorizeRequestValidator

Remarks

Duende 8.0.1's ICustomAuthorizeRequestValidator, measured: called once every built-in check has passed, it may change the validated request or refuse it, and a refusal goes back to the client's redirect URI with the error and description it gave — invalid_request if it gave none. Registered with AddCustomAuthorizeRequestValidator<T>(); the default accepts everything.

Methods

ValidateAsync(CustomAuthorizeRequestValidationContext, CancellationToken)

Runs the host's checks, refusing the request by setting an error result on context.

Task ValidateAsync(CustomAuthorizeRequestValidationContext context, CancellationToken ct)

Parameters

context CustomAuthorizeRequestValidationContext

The validated request, whose Result the validator may replace.

ct CancellationToken

Cancels the validation.

Returns

Task

A task that completes when the checks have run.