Skip to content

Inconsistent docs on securing Blazor WebAssembly App with Entra #34743

@mikeholczer

Description

@mikeholczer

Description

In trying to setup a Blazor WebAssembly App in Azure Static Web Apps and using Entra to secure certain pages in it, I found multiple guides with inconsistent steps. It's want to make sure that I get the security correct, and I have to assume that one of these methods is better than the others, but it's not clear to me which one is the best, or if there is something better I'm not finding.

These guides include:

  1. https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-microsoft-entra-id?view=aspnetcore-7.0
  2. https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-microsoft-entra-id?view=aspnetcore-9.0
  3. https://learn.microsoft.com/en-us/aspnet/core/blazor/security/blazor-web-app-with-entra?view=aspnetcore-9.0
  4. https://learn.microsoft.com/en-us/azure/static-web-apps/authentication-custom?tabs=aad%2Cinvitations
  5. https://learn.microsoft.com/en-us/azure/static-web-apps/authentication-authorization

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/security/webassembly/index.md

Document ID

8670b314-460d-3194-c53b-9a44f39c6b2a

Article author

@guardrex

Metadata

  • ID: c572618c-8b98-95af-6a75-1f8e413071db
  • PlatformId: 6acb61dd-3df7-5a52-6d9f-4dead0f9176f
  • 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