Interface IFederationStateNonceStore

Assembly: redb.Identity.Core.dll

One-time-use nonce store for federation state blobs (C6).
Each issued state carries a unique jti; the callback path consumes it
exactly once. Implementations MUST be safe for concurrent calls and MUST
auto-expire entries after their TTL to bound memory.

public interface IFederationStateNonceStore

Methods

TryConsumeAsync(string, TimeSpan, CancellationToken)

Records the jti as consumed and returns true iff

Task<bool> TryConsumeAsync(string jti, TimeSpan ttl, CancellationToken ct = default)