-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Resolved because the behavior in this issue is the intended design.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I'm using Blazor RenderMode InteractiveServer globally and Prerender turned off. I also use JWT authentication (not sure how it behaves with other authentication methods).
When navigating with a href clicks it works fine authenticating the user and showing authorized page. But when the same user refreshes the page with F5, it shows HTTP ERROR 401, like this:
A minimal reproducable project is made for you to see the issue.
Expected Behavior
I expect the authenticated & authorized user to keep seeing the Authorized content inside the blazor page component after a F5 page refresh.
Steps To Reproduce
- Download the repo: Minimalistic project - Github
or quickly Git Bash this:
git clone https://github.com/DM-98/BlazorApp2-AuthorizationIssueRepro - Open Package Manager Console and run "Update-Database"
(which makes a new database called BlazorApp2-AuthorizationBugRepro) - Start with(out) debugging
- Register a user and then Login
- Navigate to [Authorize]'d page only and press F5
Exceptions (if any)
No response
.NET Version
8.0.100
Anything else?
No response
Metadata
Metadata
Assignees
Labels
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Resolved because the behavior in this issue is the intended design.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
