Open BigValen opened 3 years ago
Missing from these instructions are the fact that you need to generate a cert.pem
and privkey.pem
file using this guide here: https://docs.cherrypy.org/en/3.3.0/progguide/security.html
Also one needs to add the certificate to the keychain and trust it, instructions available here: https://www.ateam-oracle.com/how-to-make-chrome-on-os-x-trust-a-self-signed-certificate
The links are dead but you can generate things quite easily by using:
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout privkey.pem -out cert.pem
This is self-signed certificate so on the browser (firefox for example) when you get the certificate error, you can just go in advanced toggle to allow this certificate and all will work properly.
Fitbit won't allow a new application without a https callback.
Probably should switch to https...this worked for me.
But you also need to run python in an environment with a variable that tells OAUTHLIB to be cool about a bunch of things;
export OAUTHLIB_RELAX_TOKEN_SCOPE=1