Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling ms graph after authentication #2

Open
2 tasks done
andychoi opened this issue Nov 12, 2022 · 0 comments
Open
2 tasks done

Calling ms graph after authentication #2

andychoi opened this issue Nov 12, 2022 · 0 comments

Comments

@andychoi
Copy link

andychoi commented Nov 12, 2022

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

I need to call ms graph after authentication complete.
Here is code that is working fine as expected, but please advise.

  token = AzureSigninHandler(request).get_token_from_cache()['access_token']
  authZ = f'Bearer {token}'
  graph = graph_url + resource  #example: 'https://graph.microsoft.com/v1.0/users'
  results = requests.get(graph, headers={'Authorization': authZ}).json()
  return results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant