Skip to content

[Blazor WASM] AddAuthenticationStateSerialization with SerializeAllClaims does not add RoleClaimsΒ #62923

@DjeeBay

Description

@DjeeBay

Describe the bug

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention πŸ‘‹This issue needs the attention of a contributor, typically because the OP has provided an update.area-security

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions