Skip to main content

EndSessionRequestValidator Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.EndSession

EndSessionRequestValidator Class

Implements the logic for validating end-session requests.

public class EndSessionRequestValidator : Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.IEndSessionRequestValidator

Inheritance System.Object → EndSessionRequestValidator

Implements IEndSessionRequestValidator

Remarks

This class validates end-session requests to ensure they conform to expected standards and business rules. It uses the injected IEndSessionContextValidator for performing the actual validation logic. Depending on the validation outcome, it constructs an appropriate validation result which can indicate either successful validation or a specific error condition.

Constructors

EndSessionRequestValidator(IEndSessionContextValidator) Constructor

Implements the logic for validating end-session requests.

public EndSessionRequestValidator(Abblix.Oidc.Server.Endpoints.EndSession.Validation.IEndSessionContextValidator validator);

Parameters

validator IEndSessionContextValidator

The end-session context validator responsible for the core validation logic.

Remarks

This class validates end-session requests to ensure they conform to expected standards and business rules. It uses the injected IEndSessionContextValidator for performing the actual validation logic. Depending on the validation outcome, it constructs an appropriate validation result which can indicate either successful validation or a specific error condition.

Methods

EndSessionRequestValidator.ValidateAsync(EndSessionRequest) Method

Runs the configured validation pipeline over the raw end-session request.

public System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.ValidEndSessionRequest,Abblix.Oidc.Server.Common.OidcError>> ValidateAsync(Abblix.Oidc.Server.Model.EndSessionRequest request);

Parameters

request EndSessionRequest

The wire-level request to validate.

Implements ValidateAsync(EndSessionRequest)

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<ValidEndSessionRequest,OidcError>>
A ValidEndSessionRequest on success, or an OidcError identifying the first failed step.