You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since .Net 9 we can serialize the "Authentication State" with this : builder.Services.AddRazorComponents() .AddInteractiveWebAssemblyComponents() .AddAuthenticationStateSerialization( options => options.SerializeAllClaims = true);
But it looks like the RoleClaims are not added. They are correctly handled on server side but on client side there is no RoleClaims. Only UserRoles and UserClaims are serialized.
Expected Behavior
Client side the User should have all its claims (UserClaims and RoleClaims included).