Open chobo2 opened 10 months ago
There's a new docs issue on this subject at: dotnet/AspNetCore.Docs#31402
There are at least a couple of PU issues that seem related to this ...
- Blazor Authorization - AuthorizeRouteView and RedirectToLogin not working. #52063
- Clarify Blazor Web Route behavior #52176
For this specific concern over
NotAuthorized
content failing to appear, I'm looking at Javier's comment ...During [static] SSR we won't show NotAuthorized, because your component doesn't even get to render.
I added
[static]
because I think the remark means 'not interactive'.UPDATE: The full investigation at #52176 lists the other related issues that devs have opened.
Hi
So this is a known issue? I looked through the links you have but I am having trouble following along. Is there a solution to this?
I see if you change it from "Per Component" back to "Global" then everything works but I do want to stay with "Per Component".
Is there an existing issue for this?
Describe the bug
Hi
I am using Balzo 8 with Server / Per Page / Per Component and I cannot get the "NotAuthorized" tag to work.
Routes.razor
Weather.razor
Program.cs
Am I missing something? When I go to the Weather Page, I get 403 Forbidden with none of my layout. I was expecting to see "Not Authorized"
I created a Blazor 6 application with the Windows Authentication template and compared, but I am not sure what I am missing.
I also see when I use the Individual Identity it has the "NotAuthorized" and it seems to work.
Expected Behavior
To see my message I written in the NotAuthorized Tag.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
Net 8
Anything else?
No response