pinterest / pinterest-api-demo

Apache License 2.0
106 stars 63 forks source link

Redirect URI not recognized on login #4

Open robinske opened 8 years ago

robinske commented 8 years ago

Seeing the following message for Pinterest login:

{
  "status": "failure",
   "code": 7,
   "host": "coreapp-ngapi-prod-60071200",
   "generated_at": "Tue, 16 Feb 2016 05:10:42 +0000",
   "message": "You are not permitted to access that resource.",
  "data": "The provided redirect_uri https://pinterest.github.io/pinterest-api-demo/ does not match any of the registered redirect URIs."
}

And a similar 400 error from the Instagram login. Didn't see the redirect URL (https://pinterest.github.io/pinterest-api-demo/) in the code so not sure if the repo is out of sync with the deployed app.

kennyhyun commented 8 years ago

It works by https:// not http://. the link in the README.md should be changed. But Instagram fails with https://.

{
  "code": 400, 
  "error_type": "OAuthException", 
  "error_message": "Redirect URI does not match registered redirect URI"
}

Interesting. You can still login Instagram with http://pinterest.github.io/pinterest-api-demo/ and Pinterest with https://pinterest.github.io/pinterest-api-demo/ and finally works