Table of Contents

Interface IHouseholdIdentifierResolver

Namespace
SEBT.Portal.Core.Services
Assembly
SEBT.Portal.Core.dll

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

user ClaimsPrincipal

The authenticated user (claims principal).

cancellationToken CancellationToken

Optional cancellation token.

Returns

Task<HouseholdIdentifier>

The first preferred household identifier that can be resolved from the user's claims, or null if none is available.