Skip to content

Commit f35e767

Browse files
committed
Updates
1 parent 82bb6b7 commit f35e767

File tree

1 file changed

+7
-0
lines changed
  • aspnetcore/migration/80-to-90/includes

1 file changed

+7
-0
lines changed

aspnetcore/migration/80-to-90/includes/blazor.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ In the server project:
1717
+ .AddAuthenticationStateSerialization();
1818
```
1919

20+
The API only serializes the server-side name and role claims for access in the browser. To include all claims, set <xref:Microsoft.AspNetCore.Components.WebAssembly.Server.AuthenticationStateSerializationOptions.SerializeAllClaims> to `true`:
21+
22+
```csharp
23+
.AddAuthenticationStateSerialization(options => options.SerializeAllClaims = true);
24+
```
25+
2026
In the client project (`.Client`):
2127

2228
* Remove the Persistent Authentication State Provider (`PersistentAuthenticationStateProvider.cs`).
@@ -27,3 +33,4 @@ In the client project (`.Client`):
2733
- builder.Services.AddSingleton<AuthenticationStateProvider, PersistentAuthenticationStateProvider>();
2834
+ builder.Services.AddAuthenticationStateDeserialization();
2935
```
36+

0 commit comments

Comments
 (0)