Make AuthenticationFailedError consistent with other client errors #16736
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
Credentials return
AuthenticationFailedError
when authentication fails. That type has aRawResponse()
method which returns any response the credential received. Naively, it seemsAuthenticationFailedError
should instead wrapazcore.ResponseError
, to enable consistent error handling. Otherwise the API compels applications to handle authentication failures differently than other errors:The text was updated successfully, but these errors were encountered: