Description
I've been having severe trouble implementing authentication and authorization in Blazor Hybrid apps.
While the guide has a lot of code, I'm not quite sure how to properly integrate Entra ID into it. I find myself left with a lot of questions.
"What will happen when the token expires?"
"Is it automatically renewed when it expires?"
"How do I reduce token expiration time so I can test it?"
"Why is the AuthorizeView tag working, but not its Roles attribute?"
"Why is the [Authorize] attribute not working?"
It would help if the docs used implementation with Entra ID (or provide a sample with it) and also addressed those questions. Coming from the MVC framework, I can't help but feel like there's missing features and the answers to these questions are hard to find.
I've made a post on reddit too if you want to see how far I got: https://www.reddit.com/r/dotnet/comments/1e05wel/how_to_fully_integrate_entra_id_authorization/
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/security/?view=aspnetcore-8.0&pivots=maui
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/hybrid/security/index.md
Document ID
cb3ca917-28cc-126f-a7ff-3ff00ad30677
Article author
@guardrex
Description
I've been having severe trouble implementing authentication and authorization in Blazor Hybrid apps.
While the guide has a lot of code, I'm not quite sure how to properly integrate Entra ID into it. I find myself left with a lot of questions.
"What will happen when the token expires?"
"Is it automatically renewed when it expires?"
"How do I reduce token expiration time so I can test it?"
"Why is the AuthorizeView tag working, but not its Roles attribute?"
"Why is the [Authorize] attribute not working?"
It would help if the docs used implementation with Entra ID (or provide a sample with it) and also addressed those questions. Coming from the MVC framework, I can't help but feel like there's missing features and the answers to these questions are hard to find.
I've made a post on reddit too if you want to see how far I got: https://www.reddit.com/r/dotnet/comments/1e05wel/how_to_fully_integrate_entra_id_authorization/
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/security/?view=aspnetcore-8.0&pivots=maui
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/hybrid/security/index.md
Document ID
cb3ca917-28cc-126f-a7ff-3ff00ad30677
Article author
@guardrex