Is your feature request related to a problem? Please describe.
Azure/azure-sdk-for-python#36565 and Azure/azure-sdk-for-python#36882 introduced a new get_token_info token protocol.
Azure CLI currently supports 2 types of protocols:
- Track 1:
signed_session
- Track 2:
get_token
Describe the solution you'd like
After Azure CLI fully drops Track 1 SDK's signed_session support, we should consider migrating get_token to get_token_info. The main benefit is that the returned AccessTokenInfo object has a token_type attribute which can be used for a PoP token.
Meanwhile, Azure CLI Core should be refactored to not rely on SDK's token protocol, in order to be more cohesive and less coupled with SDK (#29955). For example, get_raw_token should not call
|
sdk_token = credential.get_token(*scopes) |
Is your feature request related to a problem? Please describe.
Azure/azure-sdk-for-python#36565 and Azure/azure-sdk-for-python#36882 introduced a new
get_token_infotoken protocol.Azure CLI currently supports 2 types of protocols:
signed_sessionget_tokenDescribe the solution you'd like
After Azure CLI fully drops Track 1 SDK's
signed_sessionsupport, we should consider migratingget_tokentoget_token_info. The main benefit is that the returnedAccessTokenInfoobject has atoken_typeattribute which can be used for a PoP token.Meanwhile, Azure CLI Core should be refactored to not rely on SDK's token protocol, in order to be more cohesive and less coupled with SDK (#29955). For example,
get_raw_tokenshould not callazure-cli/src/azure-cli-core/azure/cli/core/_profile.py
Line 419 in 89ebb60