Skip to content

Commit

Permalink
Fixes #2448
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprieur committed Sep 7, 2023
1 parent 767331f commit 9d6fa3d
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 9d6fa3d

Please sign in to comment.