diff --git a/aspnetcore/blazor/security/includes/app-component.md b/aspnetcore/blazor/security/includes/app-component.md index 904f1c1b6b..97867075cf 100644 --- a/aspnetcore/blazor/security/includes/app-component.md +++ b/aspnetcore/blazor/security/includes/app-component.md @@ -7,32 +7,9 @@ The `App` component (`App.razor`) is similar to the `App` component found in Bla * The component makes sure that the current user is authorized to access a given page or otherwise renders the `RedirectToLogin` component. * The `RedirectToLogin` component manages redirecting unauthorized users to the login page. -```razor - - - - - - @if (!context.User.Identity.IsAuthenticated) - { - - } - else - { -

- You are not authorized to access - this resource. -

- } -
-
-
- - -

Sorry, there's nothing at this address.

-
-
-
-
-``` +Due to changes in the framework across releases of ASP.NET Core, Razor markup for the `App` component (`App.razor`) isn't shown in this section. To inspect the markup of the component for a given release, use ***either*** of the following approaches: + +* Create an app provisioned for authentication from the default Blazor WebAssembly project template for the version of ASP.NET Core that you intend to use. Inspect the `App` component (`App.razor`) in the generated app. +* Inspect the `App` component (`App.razor`) in [reference source](https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/App.razor). + + [!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]