Skip to content

Instantly share code, notes, and snippets.

@phillipharding
Created March 18, 2019 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipharding/746861d8a510117f48bdf263f1f0d0c1 to your computer and use it in GitHub Desktop.
Save phillipharding/746861d8a510117f48bdf263f1f0d0c1 to your computer and use it in GitHub Desktop.
POST /{tenant id}/oauth2/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
cache-control: no-cache
client_id:{client id}
client_secret:{client secret}
grant_type:urn:ietf:params:oauth:grant-type:jwt-bearer
assertion:{access_token_value}
resource:https://graph.microsoft.com/
requested_token_use:on_behalf_of
scope:openid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment