Table of Contents

Interface ISignInValidator

Namespace
Arc4u.Blazor
Assembly
Arc4u.OAuth2.AspNetCore.Blazor.dll

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

user ClaimsPrincipal

The user of the circuit.

cancellationToken CancellationToken

A token to cancel the check (the circuit is closing).

Returns

Task<bool>

true when the sign-in still exists; false to turn the circuit anonymous. An exception also turns it anonymous.