Blazor Security overview updates (#28336)
parent
aba57ac9cb
commit
e87be1cd4c
File diff suppressed because it is too large
Load Diff
|
@ -1032,6 +1032,8 @@ builder.Services.TryAddScoped<AuthenticationStateProvider,
|
|||
Client.Program.ConfigureCommonServices(services);
|
||||
```
|
||||
|
||||
For more information on the Blazor framework server authentication provider (`ServerAuthenticationStateProvider`), see <xref:blazor/security/index#authenticationstateprovider>.
|
||||
|
||||
In the **:::no-loc text="Server":::** project's `Pages/_Host.cshtml` file, replace the `Component` Tag Helper (`<component ... />`) with the following:
|
||||
|
||||
```cshtml
|
||||
|
@ -2259,7 +2261,7 @@ builder.Services.AddScoped<SignOutSessionStateManager>();
|
|||
Client.Program.ConfigureCommonServices(services);
|
||||
```
|
||||
|
||||
For more information on the Blazor framework server authentication provider (`ServerAuthenticationStateProvider`), see [`ServerAuthenticationStateProvider` (API documentation)](xref:Microsoft.AspNetCore.Components.Server.ServerAuthenticationStateProvider) and [`ServerAuthenticationStateProvider` (reference source)](https://github.com/dotnet/aspnetcore/blob/main/src/Components/Server/src/Circuits/ServerAuthenticationStateProvider.cs).
|
||||
For more information on the Blazor framework server authentication provider (`ServerAuthenticationStateProvider`), see <xref:blazor/security/index#authenticationstateprovider>.
|
||||
|
||||
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
|
||||
|
||||
|
@ -3490,7 +3492,7 @@ public void ConfigureServices(IServiceCollection services)
|
|||
}
|
||||
```
|
||||
|
||||
For more information on the Blazor framework server authentication provider (`ServerAuthenticationStateProvider`), see [`ServerAuthenticationStateProvider` (API documentation)](xref:Microsoft.AspNetCore.Components.Server.ServerAuthenticationStateProvider) and [`ServerAuthenticationStateProvider` (reference source)](https://github.com/dotnet/aspnetcore/blob/main/src/Components/Server/src/Circuits/ServerAuthenticationStateProvider.cs).
|
||||
For more information on the Blazor framework server authentication provider (`ServerAuthenticationStateProvider`), see <xref:blazor/security/index#authenticationstateprovider>.
|
||||
|
||||
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
|
||||
|
||||
|
@ -4721,7 +4723,7 @@ public void ConfigureServices(IServiceCollection services)
|
|||
}
|
||||
```
|
||||
|
||||
For more information on the Blazor framework server authentication provider (`ServerAuthenticationStateProvider`), see [`ServerAuthenticationStateProvider` (API documentation)](xref:Microsoft.AspNetCore.Components.Server.ServerAuthenticationStateProvider) and [`ServerAuthenticationStateProvider` (reference source)](https://github.com/dotnet/aspnetcore/blob/main/src/Components/Server/src/Circuits/ServerAuthenticationStateProvider.cs).
|
||||
For more information on the Blazor framework server authentication provider (`ServerAuthenticationStateProvider`), see <xref:blazor/security/index#authenticationstateprovider>.
|
||||
|
||||
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ In the following example:
|
|||
> [!NOTE]
|
||||
> The preceding example doesn't show the contents of the `Router` component's Razor markup (`...`). For a demonstration with complete code, see the [Complete example](#complete-example) section of this article.
|
||||
|
||||
:::moniker range="< aspnetcore-6.0"
|
||||
:::moniker range="= aspnetcore-5.0"
|
||||
|
||||
[!INCLUDE[](~/blazor/includes/prefer-exact-matches.md)]
|
||||
|
||||
|
@ -229,7 +229,7 @@ In the following example:
|
|||
> [!NOTE]
|
||||
> The preceding example doesn't show the contents of the `Router` component's Razor markup (`...`). For a demonstration with complete code, see the [Complete example](#complete-example) section of this article.
|
||||
|
||||
:::moniker range="< aspnetcore-6.0"
|
||||
:::moniker range="= aspnetcore-5.0"
|
||||
|
||||
[!INCLUDE[](~/blazor/includes/prefer-exact-matches.md)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue