File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,12 @@ def _get_regional_authority(self, central_authority):
328
328
if region_to_use :
329
329
logger .info ('Region to be used: {}' .format (repr (region_to_use )))
330
330
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
+ )
332
337
else "{}.{}" .format (region_to_use , central_authority .instance ))
333
338
return Authority (
334
339
"https://{}/{}" .format (regional_host , central_authority .tenant ),
You can’t perform that action at this time.
0 commit comments