Interface IClientAssertionSpendStore
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
Where the deployment records the client assertions it has served, so no replica serves one of them again.
public interface IClientAssertionSpendStore
Remarks
The port exists because the property it carries is the deployment's rather than a process's. An identifier spendable once per replica is not spendable once at all: the replica that refuses a replay is not the replica the next presentation reaches, and nothing about routing puts that back, because the caller replaying a captured assertion is the one who would have had to honour the affinity. ADR 0031 records both halves of that.
What is remembered is a verifying credential, an identifier the client minted, and when the assertion carrying it stops being accepted. Nothing from a request, a message, or a key reaches it, and only an assertion whose signature already verified is offered — so what an unauthenticated caller can put here is nothing.
Methods
- RemoveExpiredAsync(DateTimeOffset, CancellationToken)
Forgets the identifiers whose assertions can no longer be presented.
- TrySpendAsync(string, string, DateTimeOffset, CancellationToken)
Spends one identifier against the credential that verified the assertion carrying it.