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 (https://github.com/Azure/azure-cli/pull/29955). For example, get_raw_token should not call
Is your feature request related to a problem? Please describe. https://github.com/Azure/azure-sdk-for-python/pull/36565 and https://github.com/Azure/azure-sdk-for-python/pull/36882 introduced a new
get_token_info
token protocol.Azure CLI currently supports 2 types of protocols:
signed_session
get_token
Describe the solution you'd like After Azure CLI fully drops Track 1 SDK's
signed_session
support, we should consider migratingget_token
toget_token_info
. The main benefit is that the returnedAccessTokenInfo
object has atoken_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 (https://github.com/Azure/azure-cli/pull/29955). For example,
get_raw_token
should not callhttps://github.com/Azure/azure-cli/blob/89ebb602dc23234cabfebc4828d3db0fba4d89d0/src/azure-cli-core/azure/cli/core/_profile.py#L419