Anupam Basak • about 8 years ago
Problem Regarding Logging in User
We are developing an Android app for the hackathon. After the OAuth Authorization the api returns a login page.
How am I supposed to log in the user from the app itself?
Comments are closed.
Uber Developer Manager • about 8 years ago
The form you are receiving from https://login.uber.com/oauth/authorize is supposed to be presented to the user as they method for them to authorize your application. You get a proper form by constructing query string parameters described as part of Step One of https://developer.uber.com/v1/auth/#oauth-2-0. So, for instance, if your REDIRECT URI was http://localhost and you were just asking for the request scope, you would construct a URL like this:
Open up a web view to this URL or open it in the android browser. From there your users will login, authorize your app to have access to the request scope, and you will be redirected to your redirect uri. If you want them redirected back to your app, use a REDIRECT URI with your unique app URI deep link prefix.