Skip to content

InvalidOperationException in Blazor 8 state manager #3964

@rockfordlhotka

Description

@rockfordlhotka

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.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions