Skip to content

EndSessionResponseFormatterDecorator Class

A decorator class that adds session management functionality to the End Session response formatting process.

C#
public class EndSessionResponseFormatterDecorator : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IEndSessionResponseFormatter

Inheritance System.Object → EndSessionResponseFormatterDecorator

Implements IEndSessionResponseFormatter

Constructors

EndSessionResponseFormatterDecorator(IEndSessionResponseFormatter, ISessionManagementService) Constructor

A decorator class that adds session management functionality to the End Session response formatting process.

C#
public EndSessionResponseFormatterDecorator(Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IEndSessionResponseFormatter inner, Abblix.Oidc.Server.Features.SessionManagement.ISessionManagementService sessionManagementService);

Parameters

inner IEndSessionResponseFormatter

The inner End Session response formatter.

sessionManagementService ISessionManagementService

The service responsible for session management.

Methods

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

Formats an End Session response and performs session management operations if enabled.

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> 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

The End Session request.

response Abblix.Utils.Result<EndSessionSuccess,OidcError>

The End Session response to be formatted.

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

Returns

System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult>
A System.Threading.Tasks.Task<> representing the asynchronous operation. The task result contains the formatted ActionResult, with additional session management actions if enabled.