#### [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')

## RevocationResponseFormatter Class

Formatter for responses to token revocation requests\.

```csharp
public class RevocationResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IRevocationResponseFormatter
```

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

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

## RevocationResponseFormatter\(IIssuerProvider\) Constructor {#Abblix.Oidc.Server.Mvc.Formatters.RevocationResponseFormatter.RevocationResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider)}

Formatter for responses to token revocation requests\.

```csharp
public RevocationResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider issuerProvider);
```
#### Parameters

###### `issuerProvider` [IIssuerProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Issuer.IIssuerProvider 'Abblix\.Oidc\.Server\.Features\.Issuer\.IIssuerProvider') {#Abblix.Oidc.Server.Mvc.Formatters.RevocationResponseFormatter.RevocationResponseFormatter(Abblix.Oidc.Server.Features.Issuer.IIssuerProvider).issuerProvider}

Supplies the issuer identifier used as the realm value on
            `WWW-Authenticate` challenges for client\-authentication failures\.
### Methods

## RevocationResponseFormatter\.FormatResponseAsync\(RevocationRequest, Result\<TokenRevoked,OidcError\>\) Method {#Abblix.Oidc.Server.Mvc.Formatters.RevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_)}

Asynchronously formats the response for a token revocation request\.

```csharp
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError> response);
```
#### Parameters

###### `request` [RevocationRequest](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Model.RevocationRequest 'Abblix\.Oidc\.Server\.Model\.RevocationRequest') {#Abblix.Oidc.Server.Mvc.Formatters.RevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_).request}

The token revocation request\.

###### `response` [Abblix\.Utils\.Result&lt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[TokenRevoked](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked 'Abblix\.Oidc\.Server\.Endpoints\.Revocation\.Interfaces\.TokenRevoked')[,](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2')[OidcError](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.OidcError 'Abblix\.Oidc\.Server\.Common\.OidcError')[&gt;](https://www.abblix.com/en/docs/api/abblix-utils/Abblix.Utils.Result_TSuccess_TFailure_ 'Abblix\.Utils\.Result\`2') {#Abblix.Oidc.Server.Mvc.Formatters.RevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_).response}

The response to the token revocation request\.

Implements [FormatResponseAsync\(RevocationRequest, Result&lt;TokenRevoked,OidcError&gt;\)](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IRevocationResponseFormatter#Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IRevocationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Model.RevocationRequest,Abblix.Utils.Result_Abblix.Oidc.Server.Endpoints.Revocation.Interfaces.TokenRevoked,Abblix.Oidc.Server.Common.OidcError_) 'Abblix\.Oidc\.Server\.Mvc\.Formatters\.Interfaces\.IRevocationResponseFormatter\.FormatResponseAsync\(Abblix\.Oidc\.Server\.Model\.RevocationRequest, Abblix\.Utils\.Result\<Abblix\.Oidc\.Server\.Endpoints\.Revocation\.Interfaces\.TokenRevoked,Abblix\.Oidc\.Server\.Common\.OidcError\>\)')

#### 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 returns the formatted action result\.

### Remarks
This method handles different types of revocation responses and formats them
into appropriate HTTP action results\.
