Skip to content

EndSessionResponseFormatter Class

Formats end-session results as Microsoft.AspNetCore.Http.IResult: a front-channel-logout HTML page (with a per-response CSP nonce), a post-logout redirect, an empty 204, or the JSON OAuth error.

C#
public class EndSessionResponseFormatter : Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IEndSessionResponseFormatter

Inheritance System.Object → EndSessionResponseFormatter

Implements IEndSessionResponseFormatter

Constructors

EndSessionResponseFormatter(IFrontChannelLogoutService) Constructor

Formats end-session results as Microsoft.AspNetCore.Http.IResult: a front-channel-logout HTML page (with a per-response CSP nonce), a post-logout redirect, an empty 204, or the JSON OAuth error.

C#
public EndSessionResponseFormatter(Abblix.Oidc.Server.Features.LogoutNotification.IFrontChannelLogoutService frontChannelLogoutService);

Parameters

frontChannelLogoutService IFrontChannelLogoutService

Builds the front-channel logout HTML response.

Methods

EndSessionResponseFormatter.FormatResponseAsync(EndSessionRequest, Result<EndSessionSuccess,OidcError>) Method

Formats the end-session result: a front-channel-logout HTML page, a post-logout redirect, an empty 204, or an OAuth error.

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Model.EndSessionRequest request, Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.EndSession.Interfaces.EndSessionSuccess,Abblix.Oidc.Server.Common.OidcError> response);

Parameters

request EndSessionRequest
response Abblix.Utils.Result<EndSessionSuccess,OidcError>

Implements FormatResponseAsync(EndSessionRequest, Result<EndSessionSuccess,OidcError>)

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>