Skip to main content

CompositeRequestFetcher Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Authorization.RequestFetching

CompositeRequestFetcher Class

A composite fetcher that combines multiple IAuthorizationRequestFetcher instances. It iterates through each fetcher to process an authorization request, allowing for a flexible and extensible mechanism to fetch and validate authorization requests from different sources or formats.

public class CompositeRequestFetcher : Abblix.Oidc.Server.Endpoints.Authorization.RequestFetching.IAuthorizationRequestFetcher

Inheritance System.Object → CompositeRequestFetcher

Implements IAuthorizationRequestFetcher

Constructors

CompositeRequestFetcher(IAuthorizationRequestFetcher[]) Constructor

A composite fetcher that combines multiple IAuthorizationRequestFetcher instances. It iterates through each fetcher to process an authorization request, allowing for a flexible and extensible mechanism to fetch and validate authorization requests from different sources or formats.

public CompositeRequestFetcher(Abblix.Oidc.Server.Endpoints.Authorization.RequestFetching.IAuthorizationRequestFetcher[] fetchers);

Parameters

fetchers IAuthorizationRequestFetcher[]

An array of IAuthorizationRequestFetcher instances that will be used to fetch and validate the authorization request.

Methods

CompositeRequestFetcher.FetchAsync(AuthorizationRequest) Method

Iterates through the configured fetchers to process the authorization request. Each fetcher in the array has the opportunity to handle the request. If a fetcher returns a fault, the process stops and the fault is returned. If all fetchers succeed, the method returns the final successful result.

public 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 authorization request to be processed.

Implements FetchAsync(AuthorizationRequest)

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<AuthorizationRequest,AuthorizationRequestValidationError>>
A Abblix.Utils.Result<> of AuthorizationRequest on success or AuthorizationRequestValidationError on failure, representing the outcome of the fetching process. If a fetcher returns a fault, that fault is propagated; otherwise the final successful request is returned.