You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/security/index.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn about Blazor authentication and authorization scenarios.
5
5
monikerRange: '>= aspnetcore-3.1'
6
6
ms.author: wpickett
7
7
ms.custom: mvc
8
-
ms.date: 10/30/2025
8
+
ms.date: 10/31/2025
9
9
uid: blazor/security/index
10
10
---
11
11
# ASP.NET Core Blazor authentication and authorization
@@ -106,8 +106,6 @@ Blazor differs from traditional server-rendered web apps that make new HTTP requ
106
106
107
107
The built-in or custom <xref:Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider> service obtains authentication state data from ASP.NET Core's <xref:Microsoft.AspNetCore.Http.HttpContext.User%2A?displayProperty=nameWithType>. This is how authentication state integrates with existing ASP.NET Core authentication mechanisms.
108
108
109
-
For more information on server-side authentication, see <xref:blazor/security/index>.
@@ -140,7 +138,7 @@ After choosing the server-side app template and configuring the project, select
140
138
141
139
***None** (default): No authentication.
142
140
***Individual Accounts**: User accounts are stored within the app using ASP.NET Core [Identity](xref:security/authentication/identity).
143
-
***Microsoft identity platform**: For more information, see <xref:blazor/security/index#additional-resources>.
141
+
***Microsoft identity platform**: For more information, see the links in the [Additional resources](#additional-resources) section.
144
142
***Windows**: Use Windows Authentication.
145
143
146
144
:::moniker-end
@@ -478,7 +476,7 @@ For more information, see the guidance on <xref:Microsoft.AspNetCore.Components.
478
476
479
477
### Unauthorized content display while prerendering with a custom `AuthenticationStateProvider`
480
478
481
-
To avoid showing unauthorized content, for example content in an [`AuthorizeView` component](xref:blazor/security/index#authorizeview-component), while prerendering with a [custom `AuthenticationStateProvider`](xref:blazor/security/authentication-state#implement-a-custom-authenticationstateprovider), adopt ***one*** of the following approaches:
479
+
To avoid showing unauthorized content, for example content in an [`AuthorizeView` component](#authorizeview-component), while prerendering with a [custom `AuthenticationStateProvider`](xref:blazor/security/authentication-state#implement-a-custom-authenticationstateprovider), adopt ***one*** of the following approaches:
482
480
483
481
* Implement <xref:Microsoft.AspNetCore.Components.Authorization.IHostEnvironmentAuthenticationStateProvider> for the custom <xref:Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider> to support prerendering: For an example implementation of <xref:Microsoft.AspNetCore.Components.Authorization.IHostEnvironmentAuthenticationStateProvider>, see the Blazor framework's <xref:Microsoft.AspNetCore.Components.Server.ServerAuthenticationStateProvider> implementation in [`ServerAuthenticationStateProvider.cs` (reference source)](https://github.com/dotnet/aspnetcore/blob/main/src/Components/Endpoints/src/DependencyInjection/ServerAuthenticationStateProvider.cs).
0 commit comments