Class LogoutConfirmationProtector
The proof that the End-User, not a page they happened to visit, asked to sign out.
/connect/logout is the OIDC end_session_endpoint and works on the browser's own session
cookie, which a cross-site top-level navigation carries (SameSite=Lax): a link on any page could
end the visitor's OP session. A relying party proves its intent with a valid id_token_hint whose
sub is the session's user; a request without one gets a confirmation page instead, and the page's
form carries a state issued here. The state is bound to the user and the session it was shown for and
lives five minutes; a foreign page cannot read it (same-origin policy) nor forge it (DataProtection), so
presenting it is the confirmation. Same shape as Duende's logout prompt and Keycloak's confirmation
without id_token_hint.
public sealed class LogoutConfirmationProtector
Inheritance
Methods
Accepts(string?, long, long)
True when protectedState is a state this server issued for exactly this user and
public bool Accepts(string? protectedState, long userId, long sessionId)
Issue(long, long)
Issues a state for the confirmation page shown to userId in session sessionId.
public string Issue(long userId, long sessionId)