Skip to content

Commit

Permalink
Merge pull request #538 from DuendeSoftware/josephdecock-patch-1
Browse files Browse the repository at this point in the history
Update 3a_token_management.md
  • Loading branch information
brockallen authored Oct 26, 2024
2 parents 9eb0d91 + ad7ed88 commit 9cc9f6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ There are two changes here that utilize the AccessTokenManagement NuGet package:

On each call to OnGet in _CallApi.cshtml.cs_ a new HttpClient is created in the code above. Recommended however is to use the [HttpClientFactory](https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory) pattern so that instances can be reused.

`Duende.AccessTokenManagement.OpenIdConnect` builds on top of _HttpClientFactory_ to create HttpClient instances that automatically retrieve the needed access token and refresh if needed.
*Duende.AccessTokenManagement.OpenIdConnect* builds on top of _HttpClientFactory_ to create HttpClient instances that automatically retrieve the needed access token and refresh if needed.

In the client in _Program.cs_ under the call to _AddOpenIdConnectAccessTokenManagement_ register the HttpClient:

Expand Down

0 comments on commit 9cc9f6d

Please sign in to comment.