The following problem is REAL! All names have been changed to protect the innocent.

I have a site at "http://Something.github.io/MyRepository/Directory/index.html"

And I have my app configured like so:

And the API is configured like so:

   clientId: 1234,
   key: '-ABC123((',
   channelUrl: 'http://Something.github.io/MyRepository/Directory/proxy.html',
   complete: function() { }

And then I call the authenticate function like so:

   networkUsers: true,
   scope: [],
   success: MySuccessResponder,
   error: MyErrorResponder

I get a child window with the following address:


Which shows me an "approve" and "reject" button. When I click "approve" I get this error:

"error description: Cannot return to provided redirect_uri"

Apparently I am the only person having this problem or my searching skills are sucking.

I have already tried setting the OAUTH Domain to the following:

  • github
  • github.io
  • github.com
  • Something.github
  • PleaseDieInAFire.com

So I'm sure I'm missing something. Plz 2 halp!


1 Answer 1


Of course as soon as I finally break down and ask a question I see my mistake:

Applications that have the client side flow enabled can use https://stackexchange.com/oauth/login_success as their redirect_uri by default.

I had "Desktop OAuth Redirect Uri" disabled which the javascript SDK uses. (Note the url posted in the question)

Leaving this up here in case anyone else is as foolish as I.

You must log in to answer this question.

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