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):
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 ),
You can’t perform that action at this time.
0 commit comments