Class IdentityRevalidatingAuthenticationStateProvider
public class IdentityRevalidatingAuthenticationStateProvider : RevalidatingServerAuthenticationStateProvider
- Inheritance
-
objectAuthenticationStateProviderServerAuthenticationStateProviderRevalidatingServerAuthenticationStateProviderIdentityRevalidatingAuthenticationStateProvider
Constructors
IdentityRevalidatingAuthenticationStateProvider(ILoggerFactory, IServiceScopeFactory, IOptions<IdentityOptions>)
public IdentityRevalidatingAuthenticationStateProvider(ILoggerFactory loggerFactory, IServiceScopeFactory scopeFactory, IOptions<IdentityOptions> options)
Parameters
loggerFactory
ILoggerFactoryscopeFactory
IServiceScopeFactoryoptions
IOptions<IdentityOptions>
Properties
RevalidationInterval
Gets the interval between revalidation attempts.
protected override TimeSpan RevalidationInterval { get; }
Property Value
- TimeSpan
Methods
ValidateAuthenticationStateAsync(AuthenticationState, CancellationToken)
Determines whether the authentication state is still valid.
protected override Task<bool> ValidateAuthenticationStateAsync(AuthenticationState authState, CancellationToken cancellationToken)
Parameters
authState
AuthenticationStatecancellationToken
CancellationTokenA System.Threading.CancellationToken to observe while performing the operation.
Returns
- Task<bool>
A System.Threading.Tasks.Task that resolves as true if the
authenticationState
is still valid, or false if it is not.