EndSessionResponseFormatter Class
Provides a response formatter for end-session requests, which is part of the OpenID Connect protocol.
public class EndSessionResponseFormatter : Abblix.Oidc.Server.Mvc.Formatters.Interfaces.IEndSessionResponseFormatterInheritance System.Object → EndSessionResponseFormatter
Implements IEndSessionResponseFormatter
Constructors
EndSessionResponseFormatter(IFrontChannelLogoutService) Constructor
Provides a response formatter for end-session requests, which is part of the OpenID Connect protocol.
public EndSessionResponseFormatter(Abblix.Oidc.Server.Features.LogoutNotification.IFrontChannelLogoutService frontChannelLogoutService);Parameters
frontChannelLogoutService IFrontChannelLogoutService
Service for generating front-channel logout HTML responses.
Methods
EndSessionResponseFormatter.FormatResponseAsync(EndSessionRequest, Result<EndSessionSuccess,OidcError>) Method
Formats an end-session response asynchronously based on the provided response model.
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 model.
Implements FormatResponseAsync(EndSessionRequest, Result<EndSessionSuccess,OidcError>)
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.