splitwise / api-docs

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

authorization url does not have code parameter #54

Closed c-14795 closed 2 years ago

c-14795 commented 2 years ago

When tried to fetch the oauth2 code from the splitwise python sdk, using getOAuth2AuthorizeURL , code part is missing from url. see below. https://www.splitwise.com/oauth/authorize?response_type=code&client_id=&redirect_uri=&state=

jas14 commented 2 years ago

Hey there, the user authorization step of the OAuth2 authorization code flow isn't supposed to have an authorization code in the URL. That's included in the callback immediately after authorization. Can you describe what you were you expecting to see?

c-14795 commented 2 years ago

Hello, my callback url is https://www.sumanraju.com/, after hitting the above url, it is requesting for approval, once approved, it directly goes to splitwise home page,

jas14 commented 2 years ago

Did you register your callback URL with Splitwise when creating the app? If not, you'll need to go back and supply it.

c-14795 commented 2 years ago

yes I did.

jas14 commented 2 years ago

I see some log lines with the redirect URI you provided above, but the corresponding application does not have a callback URL registered.

Note that this is different from the homepage URL, which is for human-readable information about your app, not programmatic authorization.

Screen Shot 2022-02-03 at 8 01 28 AM
rofreg commented 2 years ago

I'm going to mark this issue as closed, as we believe the API docs and the API itself are both working as intended. If you have more issues or questions, feel free to reach out to developers@splitwise.com!