Skip to content

Blazor MSAL RedirectToLogin.razor reference source out of date #35958

@jbw716

Description

@jbw716

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

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-microsoft-accounts?view=aspnetcore-9.0#redirecttologin-component

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/security/webassembly/standalone-with-microsoft-accounts.md

Document ID

2f556d47-42e8-8b09-e0cb-9d169acd6aa6

Platform Id

8ce48c84-ca6e-b439-d9cf-683a278b820c

Article author

@guardrex

Metadata

  • ID: 9adb06ae-6ca0-9e47-1061-4458d807c770
  • PlatformId: 8ce48c84-ca6e-b439-d9cf-683a278b820c
  • Service: aspnet-core
  • Sub-service: blazor

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions