Skip to content

Instantly share code, notes, and snippets.

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/4baa7336614f4e97d28b14afd017a0e5 to your computer and use it in GitHub Desktop.
Save phillipharding/4baa7336614f4e97d28b14afd017a0e5 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:password
resource:https://graph.microsoft.com/
username:{user upn}
password:{user password}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment