Blazor with WindowsIdentity error: Safe handle has been closed #11901
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
investigate
Milestone
Describe the bug
When using a custom AuthorizationHandler the following Exception will be thrown when navigating through Blazor's router to a secured Page (using
@attribute [Authorize(Policy = "customPolicy")]
)When directly entering the URL in the browser and hitting Enter this error does not occur.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect that this error does not occur.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Include the output of
dotnet --info
I will try to create a small sample app to reproduce this issue if you require.
The text was updated successfully, but these errors were encountered: