Skip to main content

AuthorizationRequestProcessor Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Authorization

AuthorizationRequestProcessor Class

Processes authorization requests by coordinating with various services like authentication, consent, and token issuance. This class handles the logic of determining the appropriate response to an authorization request based on the request's parameters and the current state of the user's session.

public class AuthorizationRequestProcessor : Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.IAuthorizationRequestProcessor

Inheritance System.Object → AuthorizationRequestProcessor

Implements IAuthorizationRequestProcessor

Constructors

AuthorizationRequestProcessor(IAuthSessionService, IUserConsentsProvider, TimeProvider, IEnumerable<IAuthorizationResponseBuilder>, IConsentConstraintEnforcer) Constructor

Processes authorization requests by coordinating with various services like authentication, consent, and token issuance. This class handles the logic of determining the appropriate response to an authorization request based on the request's parameters and the current state of the user's session.

public AuthorizationRequestProcessor(Abblix.Oidc.Server.Features.UserAuthentication.IAuthSessionService authSessionService, Abblix.Oidc.Server.Features.Consents.IUserConsentsProvider consentsProvider, System.TimeProvider clock, System.Collections.Generic.IEnumerable<Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.IAuthorizationResponseBuilder> responseProcessors, Abblix.Oidc.Server.Endpoints.Authorization.IConsentConstraintEnforcer consentConstraintEnforcer);

Parameters

authSessionService IAuthSessionService
consentsProvider IUserConsentsProvider
clock System.TimeProvider
responseProcessors System.Collections.Generic.IEnumerable<IAuthorizationResponseBuilder>
consentConstraintEnforcer IConsentConstraintEnforcer

Methods

AuthorizationRequestProcessor.ProcessAsync(ValidAuthorizationRequest) Method

Orchestrates the flow for handling a valid authorization request, considering the user's session state, the need for user consent, and generating appropriate tokens. This method serves as the central logic for determining how the system should respond based on the client's request and the user's current state.

public System.Threading.Tasks.Task<Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse> ProcessAsync(Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.ValidAuthorizationRequest request);

Parameters

request ValidAuthorizationRequest

A validated authorization request containing parameters required for processing.

Implements ProcessAsync(ValidAuthorizationRequest)

Returns

System.Threading.Tasks.Task<AuthorizationResponse>
An authorization response object, which can either represent a successful authentication, an error, or a signal that further user interaction is required (e.g., login, consent).