Client set up for Givernment cloud #720
shemogumbe
started this conversation in
General
Replies: 1 comment
-
A workaround, the request adapter will fall back on the public graph URL, to fix this wen using government cloud, use: adapter = GraphRequestAdapter(auth_provider=auth_provider, client=http_client)
adapter.base_url = 'https://graph.microsoft.us/v1.0'
self.client = GraphServiceClient(request_adapter=adapter, scopes=self.scopes) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Initially raised by @cjsucko in #672
The setup here gives an error around getting an authorization token, pointing to a bug in client initialization
With a few tweaks to add scopes and authority:
The error persists as:
Beta Was this translation helpful? Give feedback.
All reactions