Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oauth2 Redirect URI for android application

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.

like image 587
Slimmy Avatar asked Oct 22 '22 09:10

Slimmy


1 Answers

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

like image 168
Bassem Reda Zohdy Avatar answered Oct 24 '22 01:10

Bassem Reda Zohdy