Open KeithSloan opened 5 years ago
Actually, I go to https://dev.fitbit.com/apps/details/CCCCCC
Then click on OAuth2.0 tutorial page which then goes to https://dev.fitbit.com/apps/oauthinteractivetutorial?clientEncodedId=CCCCCCC&clientSecret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&redirectUri=HTTP://www.sloan-home.co.uk&applicationType=CLIENT
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
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.
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