Skip to content

Support get_token_info protocol #29967

Description

@jiasli

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:

  1. Track 1: signed_session
  2. 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions