splitwise / api-docs

API documentation for the Splitwise API.
http://dev.splitwise.com
29 stars 16 forks source link

OAuth not working #6

Closed nobrains closed 6 years ago

nobrains commented 6 years ago

Hey Team, I used the exact same code as mentioned at dev.beta.splitwise.com. From my local machine the user is getting directed to splitwise, he is asked for permission, but once he clicks on Authorize, he is taken to the splitwise website instead of being redirected back to the "redirect_uri".

screen shot 2018-07-29 at 1 11 31 pm
mgod commented 6 years ago

When you created your OAuth application in Splitwise, did you set `http://localhost/callback as the redirect there? OAuth will not allow you to specify an arbitrary redirect url, it needs to match characteristics of the redirect allowed with your initial client application configuration, and an exact match is the easiest for make sure is correct.