The application context manager for Blazor server, in Blazor 8, is unable to get the user identity from the AuthenticationStateProvider service, because Blazor 8 no longer allows this type to be accessed outside the context of a razor component.
My research indicates that we should try to access the HttpContext first and if that isn't available, then we should fall back to the AuthenticationStateProvider to get the current user identity.
This affects CSLA 8 and 9.
The application context manager for Blazor server, in Blazor 8, is unable to get the user identity from the
AuthenticationStateProviderservice, because Blazor 8 no longer allows this type to be accessed outside the context of a razor component.My research indicates that we should try to access the HttpContext first and if that isn't available, then we should fall back to the
AuthenticationStateProviderto get the current user identity.This affects CSLA 8 and 9.