
Marcin Gosk • over 8 years ago
Getting access token
Hey guys.
When I trying to exchange access code for access code I getting 401 error `{"error": "access_denied"}`. What I doing wrong ?
Extracted request:
curl -F 'client_secret=myClientSecret' \
-F 'client_id=myClientId' \
-F 'grant_type=authorization_code' \
-F 'redirect_uri=myUrl' \
-F 'code=oneTimeCode' \
https://login.uber.com/oauth/token
Comments are closed.
2 comments
Uber Developer Manager • over 8 years ago
Without being able to see your exact request, my guess is that one of your values you are passing in is incorrect. This is most commonly the `redirect_uri`. Make sure it you pass it in the request *exactly* as you have it entered into your application config of the developer portal. Be sure to include `https` and any trailing slashes.
Marcin Gosk • over 8 years ago
I want to test my app locally and this this is my redirect URI
&redirect_uri=http%3A%2F%2Flocalhost%2Fauth.html
Should it work with loccaly with http protocol ?