Blazor Security overview updates (#28336)

pull/28341/head
Luke Latham 2023-02-09 06:56:50 -05:00 committed by GitHub
parent aba57ac9cb
commit e87be1cd4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 326 additions and 1664 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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)]

View File

@ -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)]