Skip to content

Commit

Permalink
{Core} Discard tenant_id in get_token (#21244)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored Feb 11, 2022
1 parent 45ef11f commit 1198dc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/azure-cli-core/azure/cli/core/auth/credential_adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def signed_session(self, session=None):

def get_token(self, *scopes, **kwargs):
logger.debug("CredentialAdaptor.get_token: scopes=%r, kwargs=%r", scopes, kwargs)

# SDK azure-keyvault-keys 4.5.0b5 passes tenant_id as kwargs, but we don't support tenant_id for now,
# so discard it.
kwargs.pop('tenant_id', None)

scopes = _normalize_scopes(scopes)
token, _ = self._get_token(scopes, **kwargs)
return token
Expand Down

0 comments on commit 1198dc0

Please sign in to comment.