Skip to content

CheckSessionResponseFormatter Class

Provides a response formatter for Check Session frames, generating a per-request CSP nonce to protect the inline script from XSS attacks.

C#
public class CheckSessionResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.ICheckSessionResponseFormatter

Inheritance System.Object → CheckSessionResponseFormatter

Implements ICheckSessionResponseFormatter

Methods

CheckSessionResponseFormatter.FormatResponseAsync(CheckSessionResponse) Method

Formats a response for a Check Session frame asynchronously.

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> FormatResponseAsync(Abblix.Oidc.Server.Endpoints.CheckSession.Interfaces.CheckSessionResponse response);

Parameters

response CheckSessionResponse

The Check Session response containing HTML content.

Implements FormatResponseAsync(CheckSessionResponse)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult>
A System.Threading.Tasks.Task representing the asynchronous operation, with the formatted response as an Microsoft.AspNetCore.Mvc.ActionResult.