skashi
skashi

Reputation: 335

What should the Request URI be when creating an oAuth 2.0 server implementation?

After reading through the oAuth 2.0 draft 23 I have a better understanding of how oAuth works, however one thing I'm not understanding is the request uri:

I've read the section in the draft and it explains the request uri needs to be an absolute url from the client but if I am making an android/iphone app then what must this value be as my app is not a website on a web server?

Upvotes: 2

Views: 210

Answers (1)

Jan Gerlinger
Jan Gerlinger

Reputation: 7415

You can define your own custom URI scheme, say

myapp://oauthcallback

Now you setup your app to listen for this scheme (works on Android and on iOS). When your browser/webview then gets redirected after the authorization request, your app will start and you can handle the query parameters sent with the URI.

Upvotes: 1

Related Questions