Skip to content

Commit

Permalink
Fix 2912 (#2913)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprieur authored Jun 27, 2024
1 parent 7aff5f9 commit dd49d78
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 dd49d78

Please sign in to comment.