Class IdentityRevalidatingAuthenticationStateProvider
public class IdentityRevalidatingAuthenticationStateProvider : RevalidatingServerAuthenticationStateProvider
- Inheritance
-
IdentityRevalidatingAuthenticationStateProvider
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
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 CancellationToken to observe while performing the operation.