Include TokenRequestOptions with authentication required error #22261
Labels
Azure.Identity
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
When
GetToken
returns an error because user interaction is required and the credential is configured not to prompt for it automatically, that error should include theTokenRequestOptions
passed toGetToken
. This would makeAuthenticate
much easier to use by providing the application a simple way to request the necessary token. The calling pattern would look like this:The text was updated successfully, but these errors were encountered: