Skip to content

Commit

Permalink
Fix 2912 (#2913) (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprieur authored Jun 27, 2024
1 parent e3a059f commit 212c1fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public async Task<string> CreateAuthorizationHeaderAsync(
// await authorizationHeaderProvider.CreateAuthorizationHeaderAsync(
// new [] { "https://graph.microsoft.com/.default" },
// new AuthorizationHeaderProviderOptions { RequestAppToken = true }).ConfigureAwait(false);
if (downstreamApiOptions != null && downstreamApiOptions.RequestAppToken)
if (downstreamApiOptions != null && (downstreamApiOptions.RequestAppToken || downstreamApiOptions.AcquireTokenOptions?.ManagedIdentity != null))
{
result = await _tokenAcquisition.GetAuthenticationResultForAppAsync(
scopes.FirstOrDefault()!,
Expand Down

0 comments on commit 212c1fb

Please sign in to comment.