Skip to content

IAuthorizationResponseFormatter Interface

Defines an interface for formatting an authorization response from a strong-typed model to a framework-specific response.

C#
public interface IAuthorizationResponseFormatter

Derived
AuthorizationResponseFormatter

Methods

IAuthorizationResponseFormatter.FormatResponseAsync(AuthorizationRequest, AuthorizationResponse) Method

Formats an authorization response asynchronously, converting it from a strong-typed model to a framework-specific response.

C#
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> FormatResponseAsync(Abblix.Oidc.Server.Model.AuthorizationRequest request, Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse response);

Parameters

request AuthorizationRequest

The authorization request.

response AuthorizationResponse

The authorization response to be formatted.

Returns

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