Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Loop #14

Open
rweigel opened this issue Feb 7, 2016 · 2 comments
Open

Redirect Loop #14

rweigel opened this issue Feb 7, 2016 · 2 comments

Comments

@rweigel
Copy link

rweigel commented Feb 7, 2016

Not necessarly an issue, but may be worth documenting here. I encountered a problem with fitbit-js that seems to be an issue with the Fitbit API: https://community.fitbit.com/t5/Third-Party-Integrations/Stuck-in-Deny-Allow-loop-when-trying-to-give-access-using-OAuth/m-p/814536

Message I wrote is repeated below.


I did

git clone https://github.com/smurthas/fitbit-js.git
cd fitbit-js
npm install
cd example
node test.js [Consumer Key] [Consumer Secret]

I have the callback URL set to http://localhost:8553/ (also tried http://localhost:8553/getStuff)

I opened http://localhost:8553/ in a Chrome when I was logged-in in another tab. I sent to https://www.fitbit.com/oauth/authorize?oauth_token=... was given the Deny/Accept option. I clicked Accept, was sent to http://localhost:8553/?oauth_token=...&oauth_verifier=... which then sent a 302 redirect back to https://www.fitbit.com/oauth/authorize?oauth_token=...

I tried this in Safari and Firefox - I have never logged into Fitbit in these accounts. I also tried clearing the cache and got the same result. Same when using incognito mode.

@smurthas
Copy link
Owner

@rweigel Are you still having this issue?

If so, are you using OAuth 1 or 2? And would you please post a screenshot of you application configuration, e.g.

screen shot 2016-03-28 at 5 42 38 pm

@rweigel
Copy link
Author

rweigel commented Mar 30, 2016

@smurthas - I don't have the issue now. Thanks. I have it working with the same settings as in your image except with an application type of personal.

I may have had a trailing slash in the callback URL when I tried the first time. I just tried with and without the trailing slash and did not have the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants