-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Description
The sample RedirectToLogin.razor component that is linked to in the Blazor MSAL docs as the "reference source" is out of date since .NET 7+.
Here is the reference that it directs to:
https://github.com/dotnet/aspnetcore/blob/v9.0.0/src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Layout/RedirectToLogin.razor
However, as of .NET 7+, the following is required for this to work correctly:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/7.0/wasm-app-authentication#recommended-action
Could the documentation here be updated then to describe the issue or the correct way to do it now? Currently, it still links to that example for .NET versions 7+, which caused our team some grief when using this component and wondering why the exact example linked by the docs wasn't working correctly. Additionally, the .NET 7 breaking changes section wasn't terribly easily found through search engines and took quite a bit of digging.
Page URL
Content source URL
Document ID
2f556d47-42e8-8b09-e0cb-9d169acd6aa6
Platform Id
8ce48c84-ca6e-b439-d9cf-683a278b820c
Article author
Metadata
- ID: 9adb06ae-6ca0-9e47-1061-4458d807c770
- PlatformId: 8ce48c84-ca6e-b439-d9cf-683a278b820c
- Service: aspnet-core
- Sub-service: blazor
Metadata
Metadata
Assignees
Labels
Type
Projects
Status