
Anupam Basak • about 8 years ago
Problem Regarding Logging in User
Hi,
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?
Thanks.
Comments are closed.
1 comment
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:
https://login.uber.com/oauth/authorize?response_type=code&redirect_uri=http%3A%2F%2Flocalhost&scope=request&client_id=
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.