Commit 33bbf35
[Identity] Improve MI error messages (#43231)
* [Identity] Improve MI error messages
For synchronous ManagedIdentityCredential, if a token request is
unsuccessful, MSAL will return a dict containing "error" and
"error_description" keys. We should ensure that the "error_description"
value is in the raised exception.
Signed-off-by: Paul Van Eck <[email protected]>
* Update sdk/identity/azure-identity/azure/identity/_internal/msal_managed_identity_client.py
Co-authored-by: Copilot <[email protected]>
---------
Signed-off-by: Paul Van Eck <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent f837589 commit 33bbf35
File tree
2 files changed
+3
-1
lines changed- sdk/identity/azure-identity
- azure/identity/_internal
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments