Blazor WebAssembly uses the AuthorizationMessageHandler exception #57956
Labels
area-blazor
Includes: Blazor, Razor Components
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Is there an existing issue for this?
Describe the bug
I am following these instructions from the documentation for attaching authentication tokens to outgoing HTTP requests:
like the documentation
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/additional-scenarios?view=aspnetcore-8.0#handle-token-request-errors
Using a AuthorizationMessageHandler as described does not work at all; the request doesn't even send to the API.
Either something is broken or the documentation is unclear.
Can't the AuthorizationMessageHandler be used directly?
My code
Expected Behavior
Authorization: Bearer token should be attached to outgoing request
Steps To Reproduce
No response
Exceptions (if any)
.NET Version
net 8.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: