Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
4,858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. 1) (GET) https://www.epicgames.com/id/api/csrf
  2. 2) Take xsrf-token from cookie response from (1)
  3. (POST) https://www.epicgames.com/id/api/login
  4. Headers:
  5. "x-xsrf-token" : "from csrf cookie"
  6. "Content-Type" : "application/x-www-form-urlencoded"
  7. Body:
  8. email: "xxx"
  9. password: "xxx"
  10. rememberMe: true/false (NOT STRING!!!)
  11.  
  12. 3) (GET) https://www.epicgames.com/id/api/redirect
  13. Header:
  14. "x-xsrf-token" : "same as previously"
  15. "Referer" : https://www.epicgames.com/id/login
  16.  
  17. 4) (GET) https://www.epicgames.com/id/api/authenticate
  18. - This step might not be needed..:
  19.  
  20. 5) (GET) https://www.epicgames.com/id/api/exchange
  21. Header:
  22. "x-xsrf-token" : "same as previously"
  23.  
  24. > This returns a "code"
  25.  
  26. 6) (POST) https://account-public-service-prod03.ol.epicgames.com/account/api/oauth/token
  27. Headers:
  28. "Content-Type" : "application/x-www-form-urlencoded"
  29. "Authorization" : "basic MzQ0NmNkNzI2OTRjNGE0NDg1ZDgxYjc3YWRiYjIxNDE6OTIwOWQ0YTVlMjVhNDU3ZmI5YjA3NDg5ZDMxM2I0MWE=" (LAUNCHER TOKEN WINDOWS)
  30. Body:
  31. "grant_type" : "exchange_code"
  32. "exchange_code" : "code from earlier step"
  33. "includePerms" : true/false
  34. "token_type" : "eg1"
  35.  
  36.  
  37.  
  38. > returns the access token just like before
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement