Skip to content

Commit 177bf28

Browse files

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

msal/application.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,12 @@ def _get_regional_authority(self, central_authority):
328328
if region_to_use:
329329
logger.info('Region to be used: {}'.format(repr(region_to_use)))
330330
regional_host = ("{}.login.microsoft.com".format(region_to_use)
331-
if central_authority.instance == "login.microsoftonline.com"
331+
if central_authority.instance in (
332+
# The list came from https://github.com/AzureAD/microsoft-authentication-library-for-python/pull/358/files#r629400328
333+
"login.microsoftonline.com",
334+
"login.windows.net",
335+
"sts.windows.net",
336+
)
332337
else "{}.{}".format(region_to_use, central_authority.instance))
333338
return Authority(
334339
"https://{}/{}".format(regional_host, central_authority.tenant),

0 commit comments

Comments
 (0)