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
Copy file name to clipboardExpand all lines: aspnetcore/blazor/security/blazor-web-app-with-oidc.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,8 +234,18 @@ For more information on (web) API calls using a service abstractions in Blazor W
234
234
235
235
The `BlazorWebAppOidc.Client` project is the client-side project of the Blazor Web App.
236
236
237
+
:::moniker range=">= aspnetcore-9.0"
238
+
239
+
The client calls `AddAuthenticationStateDeserialization` to deserialize and use the authentication state passed by the server. The authentication state is fixed for the lifetime of the WebAssembly application.
240
+
241
+
:::moniker-end
242
+
243
+
:::moniker range="< aspnetcore-9.0"
244
+
237
245
The `PersistentAuthenticationStateProvider` class (`PersistentAuthenticationStateProvider.cs`) is a client-side <xref:Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider> that determines the user's authentication state by looking for data persisted in the page when it was rendered on the server. The authentication state is fixed for the lifetime of the WebAssembly application.
238
246
247
+
:::moniker-end
248
+
239
249
If the user needs to log in or out, a full page reload is required.
240
250
241
251
The sample app only provides a user name and email for display purposes. It doesn't include tokens that authenticate to the server when making subsequent requests, which works separately using a cookie that's included on <xref:System.Net.Http.HttpClient> requests to the server.
@@ -506,8 +516,18 @@ For more information on (web) API calls using a service abstractions in Blazor W
506
516
507
517
The `BlazorWebAppOidc.Client` project is the client-side project of the Blazor Web App.
508
518
519
+
:::moniker range=">= aspnetcore-9.0"
520
+
521
+
The client calls `AddAuthenticationStateDeserialization` to deserialize and use the authentication state passed by the server. The authentication state is fixed for the lifetime of the WebAssembly application.
522
+
523
+
:::moniker-end
524
+
525
+
:::moniker range="< aspnetcore-9.0"
526
+
509
527
The `PersistentAuthenticationStateProvider` class (`PersistentAuthenticationStateProvider.cs`) is a client-side <xref:Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider> that determines the user's authentication state by looking for data persisted in the page when it was rendered on the server. The authentication state is fixed for the lifetime of the WebAssembly application.
510
528
529
+
:::moniker-end
530
+
511
531
If the user needs to log in or out, a full page reload is required.
512
532
513
533
The sample app only provides a user name and email for display purposes. It doesn't include tokens that authenticate to the server when making subsequent requests, which works separately using a cookie that's included on <xref:System.Net.Http.HttpClient> requests to the server.
0 commit comments