Table of Contents

Interface ILogoutNotificationContextFactory

Namespace
Fdyay.IdentityServer.Services
Assembly
Fdyay.IdentityServer.AspNetCore.dll

Reads a logout id back into the session details the back-channel notification needs.

public interface ILogoutNotificationContextFactory

Remarks

Separate from IIdentityServerInteractionService for the same reason ILogoutContextFactory is: that interface is a fixed compatibility surface, and a host stubs it in its tests, so an extra member there is a compile error in every stub written against its twelve.

It exists at all because the logout id is the only place the session's client list survives sign-out, and unprotecting it is this assembly's business rather than the UI's. The alternative — handing the client list to the logout page — would put a list the page has no use for into a public model, and make the protected message's contents part of the UI contract.

DefaultIdentityServerInteractionService implements it, so nothing extra is constructed.

Methods

CreateAsync(string?, CancellationToken)

Reads the logout id, or null when it is absent, unreadable, or names no clients.

Task<LogoutNotificationContext?> CreateAsync(string? logoutId, CancellationToken cancellationToken = default)

Parameters

logoutId string
cancellationToken CancellationToken

Returns

Task<LogoutNotificationContext>