Oauth2 Redirect URI for android application

18,491

you can make your own URL schema and use it for redirect URL check this link for customize your schema

Share:
18,491
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    I have created my own webservice which is protected by Oauth2. I am currently using restlet for this. It makes sense providing a redirect url when you are developing a javascript client on a certain url, but what redirect uri do you provide when you are calling from a WebView.

    I currently just make it redirect to localhost and register that to the oauth authorization server. Can anyone tell me if that is the correct way of handling this or am I getting this completely wrong? The redirect page can ofcourse not be found on the android device, but you can fetch the token from the url which was appended to the localhost url.

  • Amit Kumar Gupta
    Amit Kumar Gupta over 5 years
    As per info given on Google developer console, the schema should be only http or https.