MarimerLLC / csla

A home for your business logic in any .NET application.
https://cslanet.com
MIT License
1.27k stars 406 forks source link

InvalidOperationException in Blazor 8 state manager #3964

Closed rockfordlhotka closed 6 months ago

rockfordlhotka commented 6 months ago

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.

github-actions[bot] commented 1 week ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.