Interface ISignInValidator
Tells whether the sign-in behind a principal still exists. AppPrincipalServerAuthenticationStateProvider asks it periodically for the user of each open circuit. The default implementation is SessionStoreSignInValidator; register another one to check the sign-in elsewhere (for example at the identity provider).
public interface ISignInValidator
Methods
IsSignInAliveAsync(ClaimsPrincipal, CancellationToken)
Tells whether the sign-in behind user still exists.
Task<bool> IsSignInAliveAsync(ClaimsPrincipal user, CancellationToken cancellationToken)
Parameters
userClaimsPrincipalThe user of the circuit.
cancellationTokenCancellationTokenA token to cancel the check (the circuit is closing).