We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a059f commit 212c1fbCopy full SHA for 212c1fb
src/Microsoft.Identity.Web.TokenAcquisition/DefaultAuthorizationHeaderProvider.cs
@@ -69,7 +69,7 @@ public async Task<string> CreateAuthorizationHeaderAsync(
69
// await authorizationHeaderProvider.CreateAuthorizationHeaderAsync(
70
// new [] { "https://graph.microsoft.com/.default" },
71
// new AuthorizationHeaderProviderOptions { RequestAppToken = true }).ConfigureAwait(false);
72
- if (downstreamApiOptions != null && downstreamApiOptions.RequestAppToken)
+ if (downstreamApiOptions != null && (downstreamApiOptions.RequestAppToken || downstreamApiOptions.AcquireTokenOptions?.ManagedIdentity != null))
73
{
74
result = await _tokenAcquisition.GetAuthenticationResultForAppAsync(
75
scopes.FirstOrDefault()!,
0 commit comments