Skip to main content

IAuthorizationRequestFetcher Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Authorization.RequestFetching

IAuthorizationRequestFetcher Interface

Defines an interface for fetching the details of an authorization request, potentially including resolving and validating a request object.

public interface IAuthorizationRequestFetcher

Derived
CompositeRequestFetcher
PushedRequestFetcher
RequestObjectFetchAdapter
RequestUriFetcher

Methods

IAuthorizationRequestFetcher.FetchAsync(AuthorizationRequest) Method

Asynchronously fetches and processes the authorization request, which may involve resolving a request object from a URI or directly from the request parameters.

System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Model.AuthorizationRequest,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationRequestValidationError>> FetchAsync(Abblix.Oidc.Server.Model.AuthorizationRequest request);

Parameters

request AuthorizationRequest

The initial authorization request, which may contain a reference to a request object or inline request parameters.

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<AuthorizationRequest,AuthorizationRequestValidationError>>
A task that returns the processed authorization request details, encapsulated within a Abblix.Utils.Result<> of AuthorizationRequest on success or AuthorizationRequestValidationError on failure.

Remarks

This method is responsible for handling the specifics of fetching and interpreting the authorization request, which may include retrieving a request object from a remote location specified by the 'request_uri' parameter, or validating the request object provided inline via the 'request' parameter. It ensures the request adheres to the expected format and validation requirements before further processing.