Blazor Identity template's RevalidatingAuthenticationStateProvider should implement IHostEnvironmentAuthenticationStateProvider #12692
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
Done
This issue has been fixed
Milestone
To address issues with Windows authentication, we fixed #12051 via PR #12421. This provides a mechanism by which the host environment can notify the active authentication state provider that the current user principal has changed.
While this was primarily for Windows authentication, other authentication mechanisms can make use of it too. It would make sense for the "local authentication" (identity) template to also hook into this mechanism, but currently it doesn't.
To fix this, we should make
RevalidatingAuthenticationStateProvider<TUser>
in the project template implementIHostEnvironmentAuthenticationStateProvider
. This requires a few changes to the revalidation logic to make it understand that the current user principal can change.The text was updated successfully, but these errors were encountered: