Skip to content

PushedAuthorizationResponseFormatter Class

Formats pushed authorization request results as Microsoft.AspNetCore.Http.IResult. PAR is a server-to-server endpoint (RFC 9126): responses are always JSON and errors never redirect.

C#
public class PushedAuthorizationResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IPushedAuthorizationResponseFormatter

Inheritance System.Object → PushedAuthorizationResponseFormatter

Implements IPushedAuthorizationResponseFormatter

Methods

PushedAuthorizationResponseFormatter.FormatResponseAsync(AuthorizationRequest, AuthorizationResponse) Method

Formats the PAR result (201 with the request URI on success, JSON OAuth error otherwise).

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

Parameters

request AuthorizationRequest
response AuthorizationResponse

Implements FormatResponseAsync(AuthorizationRequest, AuthorizationResponse)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>