Skip to content

Commit

Permalink
fix china, usgov endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
legra-ms committed Nov 17, 2021
1 parent 34864bf commit f4dcc41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions stormcollector/stormcollector/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"MGMT": "https://management.core.cloudapi.de",
},
"CHINA": {
"AD": identity.KnownAuthorities.AZURE_PUBLIC_CLOUD,
"AD": identity.KnownAuthorities.AZURE_CHINA,
"AAD": "https://graph.chinacloudapi.cn",
"ARM": "https://management.chinacloudapi.cn",
"GRAPH": "https://microsoftgraph.chinacloudapi.cn",
"MGMT": "https://management.core.chinacloudapi.cn",
},
"USGOV": {
"AD": identity.KnownAuthorities.AZURE_PUBLIC_CLOUD,
"AD": identity.KnownAuthorities.AZURE_GOVERNMENT,
"AAD": "https://graph.windows.net",
"ARM": "https://management.usgovcloudapi.net",
"GRAPH": "https://graph.microsoft.us/",
Expand All @@ -42,7 +42,10 @@

class Context:
def __init__(
self, args: Namespace, cloud: dict, authenticatedCreds: Tuple[Any],
self,
args: Namespace,
cloud: dict,
authenticatedCreds: Tuple[Any],
):
self.args = args
self.cloud = cloud
Expand Down

0 comments on commit f4dcc41

Please sign in to comment.