Skip to content

Commit 70b99e2

Browse files
authored
Add CookieOidcRefresher section
1 parent 77ac823 commit 70b99e2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

aspnetcore/blazor/security/blazor-web-app-with-oidc.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,19 @@ Inspect the sample app for the following features:
232232

233233
For more information on (web) API calls using a service abstractions in Blazor Web Apps, see <xref:blazor/call-web-api#service-abstractions-for-web-api-calls>.
234234

235+
:::moniker range="< aspnetcore-10.0"
236+
237+
<!-- UPDATE 10.0 - Check the PU issue for 10.0 work to resolve both issues.
238+
The docs issue is https://github.com/dotnet/AspNetCore.Docs/issues/34235. -->
239+
240+
## Custom cookie refresher (`CookieOidcRefresher.cs`)
241+
242+
The custom cookie refresher (`CookieOidcRefresher.cs`) implementation might need to be updated depending on your Identity Provider. For example, the refresher expects an ID token from the token endpoint. If the refresh token isn't an ID token with claims, the refresher can be updated with additional logic to continue to use the prior set of claims stored in the authentication cookie.
243+
244+
Additionally, work is scheduled for .NET 10 (November, 2025) on [`BlazorWebAppOidc AddOpenIdConnect with GetClaimsFromUserInfoEndpoint = true doesn't propogate role claims to client` (`dotnet/aspnetcore` 58826)](https://github.com/dotnet/aspnetcore/issues/58826) to refresh claims from the `/userinfo` endpoint.
245+
246+
:::moniker-end
247+
235248
## Client-side Blazor Web App project (`BlazorWebAppOidc.Client`)
236249

237250
The `BlazorWebAppOidc.Client` project is the client-side project of the Blazor Web App.
@@ -520,6 +533,19 @@ Inspect the sample app for the following features:
520533

521534
For more information on (web) API calls using a service abstractions in Blazor Web Apps, see <xref:blazor/call-web-api#service-abstractions-for-web-api-calls>.
522535

536+
:::moniker range="< aspnetcore-10.0"
537+
538+
<!-- UPDATE 10.0 - Check the PU issue for 10.0 work to resolve both issues.
539+
The docs issue is https://github.com/dotnet/AspNetCore.Docs/issues/34235. -->
540+
541+
## Custom cookie refresher (`CookieOidcRefresher.cs`)
542+
543+
The custom cookie refresher (`CookieOidcRefresher.cs`) implementation might need to be updated depending on your Identity Provider. For example, the refresher expects an ID token from the token endpoint. If the refresh token isn't an ID token with claims, the refresher can be updated with additional logic to continue to use the prior set of claims stored in the authentication cookie.
544+
545+
Additionally, work is scheduled for .NET 10 (November, 2025) on [`BlazorWebAppOidc AddOpenIdConnect with GetClaimsFromUserInfoEndpoint = true doesn't propogate role claims to client` (`dotnet/aspnetcore` 58826)](https://github.com/dotnet/aspnetcore/issues/58826) to refresh claims from the `/userinfo` endpoint.
546+
547+
:::moniker-end
548+
523549
## Client-side Blazor Web App project (`BlazorWebAppOidc.Client`)
524550

525551
The `BlazorWebAppOidc.Client` project is the client-side project of the Blazor Web App.

0 commit comments

Comments
 (0)