Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2015
930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. POST https://login.microsoftonline.com/{my tenant id}/oauth2/token HTTP/1.1
  2. Content-Type: application/x-www-form-urlencoded
  3. return-client-request-id: true
  4. x-client-SKU: .NET
  5. x-client-Ver: 2.14.0.0
  6. x-client-CPU: x64
  7. x-client-OS: Microsoft Windows NT 6.2.9200.0
  8. x-client-last-response-time: 239
  9. x-client-last-endpoint: user_realm
  10. Host: login.microsoftonline.com
  11. Content-Length: 173
  12. Expect: 100-continue
  13.  
  14. resource={my web app uri id}&client_id={my native client app id}&grant_type=password&username={my username}&password={my password}&scope=openid
  15.  
  16. POST https://login.microsoftonline.com/{my tenant id}/oauth2/token HTTP/1.1
  17. Content-Type: application/x-www-form-urlencoded
  18. return-client-request-id: true
  19. x-client-SKU: .NET
  20. x-client-Ver: 2.14.0.0
  21. x-client-CPU: x64
  22. x-client-OS: Microsoft Windows NT 6.2.9200.0
  23. x-client-last-response-time: 239
  24. x-client-last-endpoint: user_realm
  25. Host: login.microsoftonline.com
  26. Content-Length: 173
  27. Expect: 100-continue
  28.  
  29. resource={some resource that requires authentication}&client_id={my web app id}&grant_type=password&username={my username}&password={my password}&scope=openid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement