You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingMicrosoft.Identity.Client;IConfidentialClientApplicationcca=ConfidentialClientApplicationBuilder.Create("00bedee1-0e09-4a8d-81a0-0679c5a64a83").WithExperimentalFeatures().WithDebugLoggingCallback(logLevel:LogLevel.Verbose,enablePiiLogging:true,withDefaultPlatformLoggingEnabled:true).Build();string?scope="https://management.azure.com";do{Console.WriteLine($"Acquiring token with scope {scope}");try{varresult=awaitcca.AcquireTokenForClient(newstring[]{scope}).WithManagedIdentity().ExecuteAsync().ConfigureAwait(false);Console.WriteLine("Success");Console.ReadLine();}catch(MsalServiceExceptione){Console.WriteLine(e.ErrorCode);Console.WriteLine(e.Message);Console.WriteLine(e.StackTrace);Console.ReadLine();}Console.WriteLine("Enter the scope to acquire token, 'q' to quit.");scope=Console.ReadLine();}while(scope?.Equals("q",StringComparison.InvariantCultureIgnoreCase)isfalse);
Expected behavior
With logging enabled and if MSI endpoint errors out then the correlation ID is different than the one MSAL uses. Need clarity in the logs or updated MSAL docs for this behavior
Additional context / logs / screenshots / links to code
Came as part of MSI Presentation the team did
The text was updated successfully, but these errors were encountered:
Which version of MSAL.NET are you using?
4.49.1
Platform
Net Core
What authentication flow has the issue?
Other?
Is this a new or existing app?
Dev App
Repro
Expected behavior
With logging enabled and if MSI endpoint errors out then the correlation ID is different than the one MSAL uses. Need clarity in the logs or updated MSAL docs for this behavior
Additional context / logs / screenshots / links to code
Came as part of MSI Presentation the team did
The text was updated successfully, but these errors were encountered: