Table of Contents

Interface ISamlLogoutSessionStore

Namespace
Fdyay.IdentityServer.Saml.Stores
Assembly
Fdyay.IdentityServer.Saml.dll

Holds a single logout sequence across the browser hops it takes to finish.

public interface ISamlLogoutSessionStore

Remarks

TakeAsync(string, CancellationToken) is a one-time consume for the reason the sign-in state store's is: the reference travels through the browser, and a sequence that could be resumed twice is a logout somebody else can replay. Provide a distributed implementation for multi-instance hosting — each hop may land anywhere.

Methods

StoreAsync(string, SamlLogoutSession, CancellationToken)

Stores session under key, an opaque reference.

Task StoreAsync(string key, SamlLogoutSession session, CancellationToken cancellationToken = default)

Parameters

key string
session SamlLogoutSession
cancellationToken CancellationToken

Returns

Task

TakeAsync(string, CancellationToken)

Atomically removes and returns the sequence for key, or null if absent.

Task<SamlLogoutSession?> TakeAsync(string key, CancellationToken cancellationToken = default)

Parameters

key string
cancellationToken CancellationToken

Returns

Task<SamlLogoutSession>