Skip to content

ITokenResponseFormatter Interface

Defines an interface for formatting an OAuth 2.0 token response as a low-level response object to return to the client.

C#
public interface ITokenResponseFormatter

Derived
TokenResponseFormatter

Methods

ITokenResponseFormatter.FormatResponseAsync(TokenRequest, Result<TokenIssued,OidcError>) Method

Formats an OAuth 2.0 token response asynchronously as a low-level response object to return to the client.

C#
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult<Abblix.Oidc.Server.Model.TokenResponse>> FormatResponseAsync(Abblix.Oidc.Server.Model.TokenRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Token.Interfaces.TokenIssued,Abblix.Oidc.Server.Common.OidcError> response);

Parameters

request TokenRequest

The token request.

response Abblix.Utils.Result<TokenIssued,OidcError>

The token response to be formatted.

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult<TokenResponse>>
A System.Threading.Tasks.Task representing the asynchronous operation, with the formatted response as an Microsoft.AspNetCore.Mvc.ActionResult<> containing a TokenResponse.