Support `get_token_info` protocol in AAZ
Open
Azure CLI Team
feature-request
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Is your feature request related to a problem? Please describe.**
AAZ currently still uses the old `get_token` protocol:
https://github.com/Azure/azure-cli/blob/4826c98b3c220e11a8d676f8335c5dfe730e488a/src/azure-cli-core/azure/cli/core/aaz/_http_policy.py#L80
**Describe the solution you'd like**
AAZ should use the new `get_token_info` protocol.
**Describe alternatives you've considered**
Use Azure CLI's internal `acquire_token` protocol (https://github.com/Azure/azure-cli/issues/29955) to decouple from Azure SDK.
**Additional context**
- https://github.com/Azure/azure-cli/issues/29967
- https://github.com/Azure/azure-cli/issues/29955
Contributor guide
Assessment
This issue has not been assessed yet.