Authentication state management at sign out (#33419)

pull/33417/head
Luke Latham 2024-08-23 11:06:46 -04:00 committed by GitHub
parent 3f361dbfc6
commit 320c0482f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -858,6 +858,12 @@ Two additional abstractions participate in managing authentication state:
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
## Authentication state management at sign out
Server-side Blazor persists user authentication state for the lifetime of the circuit, including across browser tabs. To proactively sign off a user across browser tabs when the user signs out on one tab, you must implement a <xref:Microsoft.AspNetCore.Components.Server.RevalidatingServerAuthenticationStateProvider> ([reference source](https://github.com/dotnet/aspnetcore/blob/main/src/Components/Server/src/Circuits/RevalidatingServerAuthenticationStateProvider.cs)) with a short <xref:Microsoft.AspNetCore.Components.Server.RevalidatingServerAuthenticationStateProvider.RevalidationInterval>.
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
:::moniker range=">= aspnetcore-8.0"
## Temporary redirection URL validity duration