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

## CheckSessionResponseFormatter Class

Produces the check\-session iframe document, generating a per\-request CSP nonce to protect the inline script\.

```csharp
public class CheckSessionResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.ICheckSessionResponseFormatter
```

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

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

## CheckSessionResponseFormatter\.FormatResponseAsync\(CheckSessionResponse\) Method {#Abblix.Oidc.Server.MinimalApi.Formatters.CheckSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse)}

Formats the check\-session response\.

```csharp
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse response);
```
#### Parameters

###### `response` [CheckSessionResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse 'Abblix\.Oidc\.Server\.Endpoints\.CheckSession\.Interfaces\.CheckSessionResponse') {#Abblix.Oidc.Server.MinimalApi.Formatters.CheckSessionResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse).response}

The check\-session response carrying the HTML template\.

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

#### 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') that writes the iframe document with a per\-request CSP nonce\.
