AzureCliCredentials throws an exception on invalid data when parsing the token in Windows #18664
Labels
Azure.Identity
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Describe the bug
When trying to obtain a token using AzureCliCredential I get an error saying the token returned from Az is invalid.
Issue seems to lie in some extra characters of unknown origin.
Example of token produced by the library call to
account get-access-token
8th line has an ESC char followed by some unknown characters
To Reproduce
Hard to say why this fails. Code is basically
Expected behavior
Well, this ought to produce a valid token :)
Screenshots

Additional context
None
The text was updated successfully, but these errors were encountered: