Skip to main content

ITokenContextValidator Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Token.Validation

ITokenContextValidator Interface

Defines the contract for a token context validator, responsible for validating different aspects of a token request within a given context. Implementations of this interface ensure that the token request adheres to the expected security and business rules.

public interface ITokenContextValidator

Derived
AuthorizationGrantValidator
ClientValidator
DPoPTokenEndpointValidator
SyncTokenContextValidatorBase
TokenContextValidatorComposite

Methods

ITokenContextValidator.ValidateAsync(TokenValidationContext) Method

Asynchronously validates the token request within the provided context, checking for compliance with the necessary validation rules such as client authentication, scope validation, grant validation, etc.

System.Threading.Tasks.Task<Abblix.Oidc.Server.Common.OidcError?> ValidateAsync(Abblix.Oidc.Server.Endpoints.Token.Validation.TokenValidationContext context);

Parameters

context TokenValidationContext

The context containing the token request and related information that needs to be validated.

Returns

System.Threading.Tasks.Task<OidcError>
A OidcError containing error details if the validation fails; otherwise, returns null indicating that the validation was successful.