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

## AuthorizationResponseFormatter Class

Maps an encoded authorization response onto the wire DTO and delivers it as an [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult'): a redirect
\(query/fragment\), a form\_post page, an interaction\-page redirect, or a no\-redirect error\. Protocol\-level decisions
\(parameter assembly, iss/scope gating, JARM packing\) are made upstream by the core encoder\.

```csharp
public class AuthorizationResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IAuthorizationResponseFormatter
```

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

Implements [IAuthorizationResponseFormatter](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IAuthorizationResponseFormatter 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IAuthorizationResponseFormatter')
### Constructors

## AuthorizationResponseFormatter\(IOptions\<OidcOptions\>, IAuthorizationRequestStorage, ISessionManagementService, IParametersProvider, IHttpContextAccessor\) Constructor {#Abblix.Oidc.Server.MinimalApi.Formatters.AuthorizationResponseFormatter.AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage,Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService,Abblix.Oidc.Server.Common.Interfaces.IParametersProvider,Microsoft.AspNetCore.Http.IHttpContextAccessor)}

Maps an encoded authorization response onto the wire DTO and delivers it as an [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult'): a redirect
\(query/fragment\), a form\_post page, an interaction\-page redirect, or a no\-redirect error\. Protocol\-level decisions
\(parameter assembly, iss/scope gating, JARM packing\) are made upstream by the core encoder\.

```csharp
public AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options, Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage authorizationRequestStorage, Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService sessionManagementService, Abblix.Oidc.Server.Common.Interfaces.IParametersProvider parametersProvider, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);
```
#### Parameters

###### `options` [Microsoft\.Extensions\.Options\.IOptions&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptions-1 'Microsoft\.Extensions\.Options\.IOptions\`1')[OidcOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptions-1 'Microsoft\.Extensions\.Options\.IOptions\`1') {#Abblix.Oidc.Server.MinimalApi.Formatters.AuthorizationResponseFormatter.AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage,Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService,Abblix.Oidc.Server.Common.Interfaces.IParametersProvider,Microsoft.AspNetCore.Http.IHttpContextAccessor).options}

###### `authorizationRequestStorage` [IAuthorizationRequestStorage](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage 'Abblix\.Oidc\.Server\.Features\.Storages\.IAuthorizationRequestStorage') {#Abblix.Oidc.Server.MinimalApi.Formatters.AuthorizationResponseFormatter.AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage,Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService,Abblix.Oidc.Server.Common.Interfaces.IParametersProvider,Microsoft.AspNetCore.Http.IHttpContextAccessor).authorizationRequestStorage}

###### `sessionManagementService` [ISessionManagementService](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService 'Abblix\.Oidc\.Server\.Features\.SessionManagement\.ISessionManagementService') {#Abblix.Oidc.Server.MinimalApi.Formatters.AuthorizationResponseFormatter.AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage,Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService,Abblix.Oidc.Server.Common.Interfaces.IParametersProvider,Microsoft.AspNetCore.Http.IHttpContextAccessor).sessionManagementService}

###### `parametersProvider` [IParametersProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Interfaces.IParametersProvider 'Abblix\.Oidc\.Server\.Common\.Interfaces\.IParametersProvider') {#Abblix.Oidc.Server.MinimalApi.Formatters.AuthorizationResponseFormatter.AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage,Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService,Abblix.Oidc.Server.Common.Interfaces.IParametersProvider,Microsoft.AspNetCore.Http.IHttpContextAccessor).parametersProvider}

###### `httpContextAccessor` [Microsoft\.AspNetCore\.Http\.IHttpContextAccessor](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.ihttpcontextaccessor 'Microsoft\.AspNetCore\.Http\.IHttpContextAccessor') {#Abblix.Oidc.Server.MinimalApi.Formatters.AuthorizationResponseFormatter.AuthorizationResponseFormatter(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_,Abblix.Oidc.Server.Features.Storages.IAuthorizationRequestStorage,Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService,Abblix.Oidc.Server.Common.Interfaces.IParametersProvider,Microsoft.AspNetCore.Http.IHttpContextAccessor).httpContextAccessor}
### Methods

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

Formats the authorization endpoint result\.

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

The encoded authorization response from the core handler\.

Implements [FormatResponseAsync\(AuthorizationRequest, AuthorizationResponse\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IAuthorizationResponseFormatter#Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IAuthorizationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.AuthorizationRequest,Abblix.Oidc.Server.Endpoints.Authorization.Interfaces.AuthorizationResponse) 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces\.IAuthorizationResponseFormatter\.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\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
An [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult') delivering the response\.
