RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Method

Definition

Determines whether the authentication state is still valid.

protected:
 abstract System::Threading::Tasks::Task<bool> ^ ValidateAuthenticationStateAsync(Microsoft::AspNetCore::Components::Authorization::AuthenticationState ^ authenticationState, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<bool> ValidateAuthenticationStateAsync (Microsoft.AspNetCore.Components.Authorization.AuthenticationState authenticationState, System.Threading.CancellationToken cancellationToken);
abstract member ValidateAuthenticationStateAsync : Microsoft.AspNetCore.Components.Authorization.AuthenticationState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected MustOverride Function ValidateAuthenticationStateAsync (authenticationState As AuthenticationState, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

authenticationState
AuthenticationState

The current AuthenticationState.

cancellationToken
CancellationToken

A CancellationToken to observe while performing the operation.

Returns

A Task that resolves as true if the authenticationState is still valid, or false if it is not.

Applies to