#### [Abblix\.Oidc\.Server\.Mvc](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc 'index')
### [Abblix\.Oidc\.Server\.Mvc\.Formatters](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters 'Abblix\.Oidc\.Server\.Mvc\.Formatters')

## PushedAuthorizationResponseFormatter Class

Implements response formatting for pushed authorization requests\.

```csharp
public class PushedAuthorizationResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IPushedAuthorizationResponseFormatter
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → PushedAuthorizationResponseFormatter

Implements [IPushedAuthorizationResponseFormatter](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IPushedAuthorizationResponseFormatter 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.Interfaces\.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](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.AuthorizationResponseFormatter 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.AuthorizationResponseFormatter'), which is intended for the authorization endpoint\.
### Methods

## PushedAuthorizationResponseFormatter\.FormatResponseAsync\(AuthorizationRequest, AuthorizationResponse\) Method {#Abblix.Oidc.Server.Mvc.Formatters.PushedAuthorizationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.AuthorizationRequest,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse)}

Asynchronously formats the response to a pushed authorization request\.

```csharp
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](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.AuthorizationRequest 'Abblix\.Oidc\.Server\.Model\.AuthorizationRequest') {#Abblix.Oidc.Server.Mvc.Formatters.PushedAuthorizationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.AuthorizationRequest,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse).request}

The original authorization request\.

###### `response` [AuthorizationResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.AuthorizationResponse') {#Abblix.Oidc.Server.Mvc.Formatters.PushedAuthorizationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.AuthorizationRequest,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse).response}

The response from processing the authorization request\.
            This could be a [PushedAuthorizationResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.PushedAuthorization.Interfaces.PushedAuthorizationResponse 'Abblix\.Oidc\.Server\.Endpoints\.PushedAuthorization\.Interfaces\.PushedAuthorizationResponse') indicating success,
            or an [AuthorizationError](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationError 'Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.AuthorizationError') indicating failure\.

Implements [FormatResponseAsync\(AuthorizationRequest, AuthorizationResponse\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IPushedAuthorizationResponseFormatter#Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IPushedAuthorizationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.AuthorizationRequest,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse) 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.Interfaces\.IPushedAuthorizationResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Model\.AuthorizationRequest, Abblix\.Oidc\.Server\.Endpoints\.Authorization\.Interfaces\.AuthorizationResponse\)')

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[Microsoft\.AspNetCore\.Mvc\.ActionResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.actionresult 'Microsoft\.AspNetCore\.Mvc\.ActionResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
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\.
