I have a component using auto render mode:
@attribute [RenderModeInteractiveAuto]I inject the AuthenticationStateProvider:
@inject Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider _authNow, in my code, if I do something like this:
var state = await _auth.GetAuthenticationStateAsync();var user = state.User;var isAdmin = user.IsInRole("admin");When this is run on the server, isAdmin is true for logged-in users in the admin role. However, on WASM, this is false. Plus, on the server side, the name claim correctly contains the user name whereas in WASM it contains the e-mail address.
Is this still a bug, or do I have to tweak some settings to get the correct identity propagated?