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
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
Related Issues