PushedAuthorizationResponseFormatter Class
Implements response formatting for pushed authorization requests.
public class PushedAuthorizationResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IPushedAuthorizationResponseFormatterInheritance System.Object → PushedAuthorizationResponseFormatter
Implements IPushedAuthorizationResponseFormatter
Remarks
PAR is a server-to-server endpoint per RFC 9126; responses are always JSON. Error responses never redirect - that would land programmatic OAuth clients on a user-facing login page. For the same reason this formatter does not delegate to the browser-flow redirect delivery in AuthorizationResponseFormatter, which is intended for the authorization endpoint.
Methods
PushedAuthorizationResponseFormatter.FormatResponseAsync(AuthorizationRequest, AuthorizationResponse) Method
Asynchronously formats the response to a pushed authorization request.
public 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 original authorization request.
response AuthorizationResponse
The response from processing the authorization request. This could be a PushedAuthorizationResponse indicating success, or an AuthorizationError indicating failure.
Implements FormatResponseAsync(AuthorizationRequest, AuthorizationResponse)
Returns
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult>
A task that resolves to an action result suitable for returning from an MVC action,
representing the formatted response. This could include setting specific HTTP status codes
or returning error information.