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

Authentication issue #2

Closed
squirrelB opened this issue Sep 8, 2017 · 1 comment
Closed

Authentication issue #2

squirrelB opened this issue Sep 8, 2017 · 1 comment

Comments

@squirrelB
Copy link

Hi, I've tried using both teramonagi/fitbitr and Avsecz/fitbitr, and both times I'm getting an error message:
"The app you're trying to connect did not provide valid information to Fitbit. Please report this issue to them.
Developer information: invalid_request - Invalid redirect_uri parameter value"
Not sure why. Callback URL is http://localhost:1410, "read-only" access type. Have tried going to the www.fitbit/oauth2/authorize... and allowed and got message "Authentication complete. Please close this page and return to R." Can't figure out what I'm doing wrong and how to fix.

@Avsecz
Copy link
Owner

Avsecz commented Oct 8, 2017

Hey @squirrelB ,
the problem was in R's httr library - it always append a slash (/, %2F in the url code) to the redirect_uri:

https://www.fitbit.com/oauth2/authorize?client_id=....&redirect_uri=http%3A%2F%2Flocalhost%3A1410%2F&response_type...

In order to make it work, you have to put a slash to your app configuration as well:

image

I'll update the README.md

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