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

Problems with Auth 2.0 #143

Open
KeithSloan opened this issue Feb 11, 2019 · 3 comments
Open

Problems with Auth 2.0 #143

KeithSloan opened this issue Feb 11, 2019 · 3 comments

Comments

@KeithSloan
Copy link

KeithSloan commented Feb 11, 2019

I am having a problem with setting up Auth2.0.

If I run python gather_keys_oauth2.py CCCCCC xxxxxxxxxxxxxxxxxxxxxxxxx
I get an error

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

my redirect is HTTP://www.sloan-home.co.uk

Yet if I use the webpage https://dev.fitbit.com/apps/oauthinteractivetutorial?clientEncodedId=CCCCCCC&clientSecret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&redirectUri=HTTP://www.sloan-home.co.uk&applicationType=CLIENT

It authorises but goes straight to giving me an access_token but NO refresh_token

@KeithSloan
Copy link
Author

OKay on reading problem #142 I hard coded in gather_keys_oauth2.py
my redirect to HTTP://www.sloan-home.co.uk but that still did not work.
It seems that gather_keys_oauth2.py wants a local host and the system I am
using for development does not have a webserver

@KeithSloan
Copy link
Author

Okay as per #142 I downgraded the librariesrequests-oauthlib==1.1.0 and oauthlib==2.1.0`
set my Callback URL to http://127.0.0.1:8080/ i.e the same as gather_keys_oauth2.py but it still did not work until I selected All for the data I wanted access to. Now I get authorised access.

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

1 participant