I want users to request Uber rides from my app.
https://developer.uber.com/docs/rides/authentication
Under OAuth 2.0 section at the above url, there are 6 steps :
1. Authorize (done)
2. Receive Redirect (done)
3. Get an Access Token ('invalid_grant' error)
The following screenshot is from Postman. I tried passing client_id, client_secret, grant_type, redirect_uri and code as params, form-data and x-www-form-url-encoded. But everytime it returns the same error.
I have put 'http://localhost:3000/auth/uber/callback' as redirect url in my Uber App dashboard.
I have even tried the following curl command in the terminal,but it returns the same 'invalid_grant' error
Can someone help me with this issue.
curl
commands. When you get that working you should be able to solve you Oauth/Postman problems, right? Also, you'll get more help if you include a tag for an programming/scripting language. Given your samplecurl
code already, you can just add abash
tag and get ~20K followers. (Or at least add a Postman or Oauth tag, depending on # of followers). Good luck. – shellter