Closed AdamDiament closed 3 years ago
Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn't been addressed yet, please file a new issue.
This issue will be locked after 30 more days of inactivity. If you still wish to discuss this subject after then, please create a new issue!
@javiercn @mkArtakMSFT Hi both - I think the bot has closed this erroneously - this is still an issue
.net5 blazor wasm template project, https
Given this flow:
In my subclassed auth state provider, I am doing this
They both work fine. Now I want to set the state to "Authorizing". What do I do?
The official documentation mentions the Authorizing state as a valid state, but not explicitly how to trigger it.
Doing this:
does indeed trigger the "Authorizing" state in the UI, so a "null" AuthenticationState does seem to be what blazor is expecting. However, it throws an exception on the front end even though it works as expected otherwise. Passing any kind of ClaimsPrincipal, causes either "Authorized" or "NotAuthorized", but never "Authorizing".
This is the exception triggered for that attempt
I also tried
This time it doesn't even trigger the state, and a different exception is encountered.