Skip to main content

BackChannelAuthenticationRequestValidator Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.BackChannelAuthentication

BackChannelAuthenticationRequestValidator Class

Validates backchannel authentication requests by delegating the context validation to a context validator. This class is responsible for ensuring that the request meets all necessary criteria for successful authentication within the backchannel authentication flow.

public class BackChannelAuthenticationRequestValidator : Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Interfaces.IBackChannelAuthenticationRequestValidator

Inheritance System.Object → BackChannelAuthenticationRequestValidator

Implements IBackChannelAuthenticationRequestValidator

Constructors

BackChannelAuthenticationRequestValidator(IBackChannelAuthenticationContextValidator) Constructor

Validates backchannel authentication requests by delegating the context validation to a context validator. This class is responsible for ensuring that the request meets all necessary criteria for successful authentication within the backchannel authentication flow.

public BackChannelAuthenticationRequestValidator(Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Validation.IBackChannelAuthenticationContextValidator contextValidator);

Parameters

contextValidator IBackChannelAuthenticationContextValidator

The context validator responsible for performing detailed validation of the request.

Methods

BackChannelAuthenticationRequestValidator.ValidateAsync(BackChannelAuthenticationRequest, ClientRequest) Method

Validates the specified backchannel authentication request. This method creates a validation context from the request and client information, then uses the context validator to perform the validation.

If validation succeeds, a ValidBackChannelAuthenticationRequest is returned; otherwise, the corresponding validation error is returned.

public System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.BackChannelAuthentication.Interfaces.ValidBackChannelAuthenticationRequest,Abblix.Oidc.Server.Common.OidcError>> ValidateAsync(Abblix.Oidc.Server.Model.BackChannelAuthenticationRequest request, Abblix.Oidc.Server.Model.ClientRequest clientRequest);

Parameters

request BackChannelAuthenticationRequest

The backchannel authentication request to be validated.

clientRequest ClientRequest

The client request associated with the backchannel authentication request.

Implements ValidateAsync(BackChannelAuthenticationRequest, ClientRequest)

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<ValidBackChannelAuthenticationRequest,OidcError>>
A task that returns a Abblix.Utils.Result<>, which can be either a valid request or an error, depending on the outcome of the validation.