If I am developing a client side application, what kind of domain should I provide to 0Auth callback? Can it be a custom application-centric scheme (like myapp://oauthcallback/)?

1 Answer 1


For native applications (ie. Desktop apps), in order to participate in an OAuth 2.0 flow you need to embed a browser control (or otherwise instrument one so you can read the current location, including hash) and do an implicit (ie. Client Side) flow with a redirect_uri of https://stackexchange.com/oauth/login_success. When you detect navigation to that url, you need to read the hash out and proceed like a normal client side app.

This detail is buried down at bottom of our authentication docs for the moment.

During registration, desktop apps can have anything in the Domain field. I'd suggest setting it to the same domain as your website, just in case you want a more traditional flow there in the future (of course, you can edit your app's domain at any time).

Finally, no, you cannot use custom schemes for your redirect_uris. Only HTTP and HTTPS, and even then you should really try to use HTTPS if at all possible.

  • So I can even put something like localhost/oauthCallback and then just track my http client being redirected to that URL with provided parameters?
    – Eimantas
    Dec 8, 2011 at 17:14
  • @Eimanthas - if you registered localhost as your domain, yes. Not much benefit over redirecting to the provided stackexchange.com url though. Dec 8, 2011 at 20:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .