Table of Contents

Interface IStateCorrelatingSessionStore

Namespace
Tessio.Verifier.AspNetCore
Assembly
Tessio.Verifier.AspNetCore.dll

An ISessionStore that can look a session up by the OpenID4VP state value a wallet echoes in its authorization response. The live callback path requires this: state is the only correlation handle a wallet response carries.

public interface IStateCorrelatingSessionStore : ISessionStore
Inherited Members

Remarks

Implement this (not just ISessionStore) when replacing the default session store in a deployment that receives real wallet callbacks. The built-in InMemorySessionStore implements it; a distributed store typically keeps a state → session-id index next to the sessions.

Methods

FindByStateAsync(string, CancellationToken)

Finds the pending session whose presentation request carries state, or null when no such session exists (unknown, evicted, or replayed state).

Task<VerificationSession?> FindByStateAsync(string state, CancellationToken ct = default)

Parameters

state string
ct CancellationToken

Returns

Task<VerificationSession>