[BUG] Azure.Identity should wrap MsalUiRequiredException as inner exception when throwing CredentialUnavailableException #20218
Labels
Azure.Identity
blocking-release
Blocks release
Client
This issue points to a problem in the data-plane of the library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Milestone
Describe the bug
This is prerequisite for fix the issue Azure/azure-powershell#14717
When MsalUiRequiredException exception is thrown from MSAL library, Azure.Identity Credentials swallow the exception and throw general CredentialUnavailableException exception, e.g. SharedTokenCacheCredential. However Azure PowerShell needs to give user actionable message based on the detail error info from CredentialUnavailableException, e.g. suggest user to login with specific tenant id for MFA.
Environment:
The text was updated successfully, but these errors were encountered: