
Probal Basak • about 8 years ago
Problem in Authorization - ANDROID
I am actually a bit confused with the endpoint.
Need help to clarify the below concern please.
I am developing an android app to authorize. I am getting a login form in the response. How am i supposed to authenticate an end user via android app?
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.