Skip to content

Commit

Permalink
Fixes #2448 (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprieur authored Sep 7, 2023
1 parent bb4fe8d commit e7d7d4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ internal MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration(
public new MicrosoftIdentityAppCallsWebApiAuthenticationBuilder EnableTokenAcquisitionToCallDownstreamApi(
IEnumerable<string>? initialScopes = null)
{
Services.AddHttpClient();

return EnableTokenAcquisitionToCallDownstreamApi(
options =>
{
Expand All @@ -57,8 +59,6 @@ internal MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration(
options.ClientSecret = AppServicesAuthenticationInformation.ClientSecret;
options.Instance = AppServicesAuthenticationInformation.Issuer;
}
Services.AddHttpClient();
},
initialScopes);
}
Expand Down

0 comments on commit e7d7d4e

Please sign in to comment.