Skip to content

Callout full claims serialization/deserialization #35390

@guardrex

Description

@guardrex

Description

In the coverage on AddAuthenticationStateSerialization, call out full claims serialization for the client and show the config ...

builder.Services.AddRazorComponents()
    .AddInteractiveServerComponents()
    .AddInteractiveWebAssemblyComponents()
-   .AddAuthenticationStateSerialization();
+   .AddAuthenticationStateSerialization(options => options.SerializeAllClaims = true);

... mentioning that only the name/role claims are serialized by default.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/?view=aspnetcore-9.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/security/index.md

Document ID

1247ee64-fbc9-ce29-0710-f6e59380f5ee

Platform Id

e2fefef3-8f63-fdc0-12a3-899a2a33d744

Article author

@guardrex

Metadata

  • ID: f75d9405-19a5-a14b-3a09-a3605b240750
  • PlatformId: e2fefef3-8f63-fdc0-12a3-899a2a33d744
  • Service: aspnet-core
  • Sub-service: blazor

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions