Table of Contents

Class IdentityRevalidatingAuthenticationStateProvider

Namespace
Oqtane.Providers
Assembly
Oqtane.Server.dll
public class IdentityRevalidatingAuthenticationStateProvider : RevalidatingServerAuthenticationStateProvider
Inheritance
IdentityRevalidatingAuthenticationStateProvider

Constructors

IdentityRevalidatingAuthenticationStateProvider(ILoggerFactory, IServiceScopeFactory, IOptions<IdentityOptions>)

public IdentityRevalidatingAuthenticationStateProvider(ILoggerFactory loggerFactory, IServiceScopeFactory scopeFactory, IOptions<IdentityOptions> options)

Parameters

loggerFactory ILoggerFactory
scopeFactory IServiceScopeFactory
options 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 AuthenticationState
cancellationToken CancellationToken

A CancellationToken to observe while performing the operation.

Returns

Task<bool>

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