Interface IHouseholdIdentifierResolver
Resolves the household identifier to use for authorization and lookup based on the authenticated user and state configuration. State configuration determines which ID type(s) are preferred (e.g. Email, SNAP ID); the resolver returns the first type it can satisfy from the user's claims.
public interface IHouseholdIdentifierResolver
Methods
ResolveAsync(ClaimsPrincipal, CancellationToken)
Resolves the preferred household identifier for the given user based on current state configuration.
Task<HouseholdIdentifier?> ResolveAsync(ClaimsPrincipal user, CancellationToken cancellationToken = default)
Parameters
userClaimsPrincipalThe authenticated user (claims principal).
cancellationTokenCancellationTokenOptional cancellation token.
Returns
- Task<HouseholdIdentifier>
The first preferred household identifier that can be resolved from the user's claims, or
nullif none is available.