BackChannelLogoutTokenSender Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.LogoutNotification
BackChannelLogoutTokenSender Class
Implements the functionality to send logout tokens to clients via back-channel communication, adhering to the OpenID Connect back-channel logout specification.
public class BackChannelLogoutTokenSender : Abblix.Oidc.Server.Features.LogoutNotification.ILogoutTokenSender
Inheritance System.Object → BackChannelLogoutTokenSender
Implements ILogoutTokenSender
Constructors
BackChannelLogoutTokenSender(ILogger<BackChannelLogoutTokenSender>, HttpClient) Constructor
Implements the functionality to send logout tokens to clients via back-channel communication, adhering to the OpenID Connect back-channel logout specification.
public BackChannelLogoutTokenSender(Microsoft.Extensions.Logging.ILogger<Abblix.Oidc.Server.Features.LogoutNotification.BackChannelLogoutTokenSender> logger, System.Net.Http.HttpClient backChannelHttpClient);
Parameters
logger Microsoft.Extensions.Logging.ILogger<BackChannelLogoutTokenSender>
The logger to use for logging information about the logout token sending process.
backChannelHttpClient System.Net.Http.HttpClient
The HTTP client used for sending the logout tokens to clients over the back channel.
Methods
BackChannelLogoutTokenSender.SendBackChannelLogoutAsync(ClientInfo, EncodedJsonWebToken) Method
Asynchronously sends a logout token directly to a client over the back channel.
public System.Threading.Tasks.Task SendBackChannelLogoutAsync(Abblix.Oidc.Server.Features.ClientInformation.ClientInfo clientInfo, Abblix.Oidc.Server.Features.Tokens.EncodedJsonWebToken logoutToken);
Parameters
clientInfo ClientInfo
Information about the client to which the logout token is sent.
logoutToken EncodedJsonWebToken
The logout token to be sent.
Implements SendBackChannelLogoutAsync(ClientInfo, EncodedJsonWebToken)
Returns
System.Threading.Tasks.Task
A task representing the asynchronous operation of sending the logout token.
Remarks
This method constructs a back-channel HTTP POST request containing the logout token and sends it to the client's back-channel logout URI. It ensures that the HTTP response indicates successful delivery of the logout token.