Skip to main content

AuthorizationRequestValidationError Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Authorization.Interfaces

AuthorizationRequestValidationError Class

Represents a specific type of validation result for an authorization request that has been deemed invalid. This record details the nature of the validation failure through an error code and description, providing insights into why the request did not pass validation checks. It also includes the redirect URI to guide the client on where to direct the user for further actions if necessary.

public record AuthorizationRequestValidationError : Abblix.Oidc.Server.Common.OidcError, System.IEquatable<Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationRequestValidationError>

Inheritance System.ObjectOidcError → AuthorizationRequestValidationError

Implements System.IEquatable<AuthorizationRequestValidationError>

Remarks

This is the validator-stage error type, returned by IAuthorizationRequestValidator in the failure leg of Abblix.Utils.Result<>. The handler/processor stage wraps it into AuthorizationError, which adds the originating Model (needed for polymorphic dispatch through the AuthorizationResponse hierarchy) and the optional error_uri.

Two parallel error types exist because of the layered architecture: the validator pipeline operates on the generic Abblix.Utils.Result<> envelope and stays free of response-level concerns; the response hierarchy needs Model for state propagation. The cost is duplication of Error, ErrorDescription, ResponseMode, RedirectUri across both types — accepted for the architectural seam.

Constructors

AuthorizationRequestValidationError(string, string, Uri, string) Constructor

Represents a specific type of validation result for an authorization request that has been deemed invalid. This record details the nature of the validation failure through an error code and description, providing insights into why the request did not pass validation checks. It also includes the redirect URI to guide the client on where to direct the user for further actions if necessary.

public AuthorizationRequestValidationError(string Error, string ErrorDescription, System.Uri? RedirectUri, string ResponseMode);

Parameters

Error System.String
ErrorDescription System.String
RedirectUri System.Uri
ResponseMode System.String

Remarks

This is the validator-stage error type, returned by IAuthorizationRequestValidator in the failure leg of Abblix.Utils.Result<>. The handler/processor stage wraps it into AuthorizationError, which adds the originating Model (needed for polymorphic dispatch through the AuthorizationResponse hierarchy) and the optional error_uri.

Two parallel error types exist because of the layered architecture: the validator pipeline operates on the generic Abblix.Utils.Result<> envelope and stays free of response-level concerns; the response hierarchy needs Model for state propagation. The cost is duplication of Error, ErrorDescription, ResponseMode, RedirectUri across both types — accepted for the architectural seam.