Azure / Azure/azure-cli

Support `get_token_info` protocol in AAZ

Open
#31,710 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.