-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] [MSAL] Regression in ManagedIdentityCredential: CredentialUnavailableException no longer thrown for invalid json responses #47470
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
@christothes if you're still on this team, you assisted with the issue in 1.9. |
Hi @kevinwedwards - |
Hi @kevinwedwards. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
|
builder.Configuration.AddAzureKeyVault( StackTrace from the code above: at Azure.Identity.ChainedTokenCredential.d__7.MoveNext() |
Hi @kevinwedwards AzureAD/microsoft-authentication-library-for-dotnet#5016 In the meantime, you can get similar behavior as before using |
Library name and version
Azure.Identity 1.13.0 (and 1.13.1)
Describe the bug
I believe bug : #37409 may have been reintroduced in 1.13.0 (and still in 1.13.1).
In our situation - our corporate proxy is returning HTML and If it's like the 37409, the managed ID client is attempting to parse the response back, as json IIRC from the previous bug.
Expected behavior
When running locally - i'd expect this to fail through from ManagedID to AzureCliCredential
new ChainedTokenCredential(new ManagedIdentityCredential(), new AzureCliCredential()),
code works fine in 1.12.1, fails in 1.13.x
Actual behavior
Microsoft.Identity.Client.MsalServiceException is being thrown, I believe, because the HTML message returned from our corporate proxy - isn't able to be successfully parsed (as JSON?).
Reproduction Steps
run locally with a proxy or something that will return html vs json.
Environment
No response
The text was updated successfully, but these errors were encountered: