Class DashboardRevalidatingAuthenticationStateProvider

Assembly: redb.Tsak.Web.dll

Circuit-side half of session revalidation (review 2026-09-02, В14). The cookie's
OnValidatePrincipal covers plain HTTP requests, but a live Blazor circuit fixes its
AuthenticationState at connection time and never re-reads the cookie — so a deleted or
demoted user would keep an open dashboard indefinitely. This provider re-resolves the
account every and tears the circuit's
auth state down when the account is gone or its role changed.

public sealed class DashboardRevalidatingAuthenticationStateProvider : RevalidatingServerAuthenticationStateProvider, IHostEnvironmentAuthenticationStateProvider, IDisposable

Inheritance

Implements

Properties

RevalidationInterval

Gets the interval between revalidation attempts.

protected override TimeSpan RevalidationInterval { get; }

Methods

ValidateAuthenticationStateAsync(AuthenticationState, CancellationToken)

Determines whether the authentication state is still valid.

protected override Task<bool> ValidateAuthenticationStateAsync(AuthenticationState authenticationState, CancellationToken cancellationToken)

Constructors