From d6458ff8f4641e90190a4a6be4a121852fe7a10e Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Thu, 4 Jun 2020 09:12:37 -0700 Subject: [PATCH] prefer organizations tenant --- .../azure/identity/_internal/shared_token_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/identity/azure-identity/azure/identity/_internal/shared_token_cache.py b/sdk/identity/azure-identity/azure/identity/_internal/shared_token_cache.py index 5942850553d3..045f3e637072 100644 --- a/sdk/identity/azure-identity/azure/identity/_internal/shared_token_cache.py +++ b/sdk/identity/azure-identity/azure/identity/_internal/shared_token_cache.py @@ -96,7 +96,7 @@ def __init__(self, username=None, **kwargs): # pylint:disable=unused-argument self._username = self._auth_record.username self._environment_aliases = frozenset((self._authority,)) else: - authenticating_tenant = "common" + authenticating_tenant = "organizations" authority = kwargs.pop("authority", None) self._authority = normalize_authority(authority) if authority else get_default_authority() environment = urlparse(self._authority).netloc