How do I get the authorization code for uber oauth

First you should double check if you set the correct redirect url in the dashboard – needs to be the same as one on authorization url. Please follow the steps of the authentication guide.

Briefly, you need to:

• Send user to authorize url. It starts by redirecting the user to the authorize endpoint: https://login.uber.com/oauth/v2/authorize?client_id=YOUR_CLIENT_ID&response_type=code&redirect_uri=YOUR_REDIRECT_URI .You can add scopes as well (check ‘scope’ parameter on authentication guide)

• Receive the redirect with an authorization code. After the user approves the scopes the user will be redirected to the redirect_uri with an auth code that you can post to the /v2/token endpoint to receive an access token.

• Make a POST call to: ‘https://login.uber.com/oauth/v2/token
• Store access and refresh token for future use

Leave a Comment