Skip to main content

ITokenRequestProcessor Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.Token.Interfaces

ITokenRequestProcessor Interface

Processes incoming token requests from clients, ensuring they are valid and authorized before issuing the appropriate token response. Depending on the request type and granted permissions, the response can include various types of tokens such as Access Tokens, Refresh Tokens and ID Tokens.

public interface ITokenRequestProcessor

Derived
AuthorizationCodeReusePreventingDecorator
TokenRequestProcessor

Remarks

This interface abstracts the core logic behind token issuance in compliance with OAuth 2.0 and OpenID Connect standards. Implementations are responsible for validating the token request details, determining the types of tokens to issue based on the request's scope and authorization, and generating a token response that conforms to the protocol specifications. While the typical response includes an Access Token and, in the case of OpenID Connect, an ID Token, the exact contents of the response may vary based on the request parameters and server policies.

Methods

ITokenRequestProcessor.ProcessAsync(ValidTokenRequest) Method

Asynchronously processes a validated and authorized token request, generating a token response.

System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Token.Interfaces.TokenIssued,Abblix.Oidc.Server.Common.OidcError>> ProcessAsync(Abblix.Oidc.Server.Endpoints.Token.Interfaces.ValidTokenRequest request);

Parameters

request ValidTokenRequest

The validated token request from the client.

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<TokenIssued,OidcError>>
A task that resolves to a TokenIssued, encapsulating the tokens to be issued to the client, or an OidcError if processing fails.