Title: fitbit do not allow callback URLs with http anymore · Issue #163 · orcasgit/python-fitbit · GitHub
Open Graph Title: fitbit do not allow callback URLs with http anymore · Issue #163 · orcasgit/python-fitbit
X Title: fitbit do not allow callback URLs with http anymore · Issue #163 · orcasgit/python-fitbit
Description: Fitbit won't allow a new application without a https callback. Probably should switch to https...this worked for me. diff --git a/gather_keys_oauth2.py b/gather_keys_oauth2.py index 39a19f8..c021ce1 100755 --- a/gather_keys_oauth2.py +++...
Open Graph Description: Fitbit won't allow a new application without a https callback. Probably should switch to https...this worked for me. diff --git a/gather_keys_oauth2.py b/gather_keys_oauth2.py index 39a19f8..c021ce...
X Description: Fitbit won't allow a new application without a https callback. Probably should switch to https...this worked for me. diff --git a/gather_keys_oauth2.py b/gather_keys_oauth2.py index 39a19f8..c0...
Opengraph URL: https://github.com/orcasgit/python-fitbit/issues/163
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fitbit do not allow callback URLs with http anymore","articleBody":"Fitbit won't allow a new application without a https callback.\r\n\r\n\r\n\r\nProbably should switch to https...this worked for me.\r\n\r\n```\r\n\r\ndiff --git a/gather_keys_oauth2.py b/gather_keys_oauth2.py\r\nindex 39a19f8..c021ce1 100755\r\n--- a/gather_keys_oauth2.py\r\n+++ b/gather_keys_oauth2.py\r\n@@ -14,7 +14,7 @@ from oauthlib.oauth2.rfc6749.errors import MismatchingStateError, MissingTokenEr\r\n \r\n class OAuth2Server:\r\n def __init__(self, client_id, client_secret,\r\n- redirect_uri='http://127.0.0.1:8080/'):\r\n+ redirect_uri='https://localhost:8080/'):\r\n \"\"\" Initialize the FitbitOauth2Client \"\"\"\r\n self.success_html = \"\"\"\r\n \u003ch1\u003eYou are now authorized to access the Fitbit API!\u003c/h1\u003e\r\n@@ -42,8 +42,13 @@ class OAuth2Server:\r\n \r\n # Same with redirect_uri hostname and port.\r\n urlparams = urlparse(self.redirect_uri)\r\n- cherrypy.config.update({'server.socket_host': urlparams.hostname,\r\n- 'server.socket_port': urlparams.port})\r\n+ cherrypy.config.update({\r\n+ 'server.socket_host': urlparams.hostname,\r\n+ 'server.socket_port': urlparams.port,\r\n+ 'server.ssl_module': 'builtin',\r\n+ 'server.ssl_certificate': 'cert.pem',\r\n+ 'server.ssl_private_key': 'privkey.pem'\r\n+ })\r\n \r\n```\r\n\r\nBut you also need to run python in an environment with a variable that tells OAUTHLIB to be cool about a bunch of things;\r\n\r\n`export OAUTHLIB_RELAX_TOKEN_SCOPE=1`\r\n","author":{"url":"https://github.com/BigValen","@type":"Person","name":"BigValen"},"datePublished":"2020-12-11T11:06:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/163/python-fitbit/issues/163"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:63eb41e1-2760-60f6-6b31-dd3c85dfa14b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E18C:4969C:35777B3:4856A21:69709147 |
| html-safe-nonce | 0524ab1766bde939433a550e8bdd1136046c7763c1a4fa46949a0bb9bfd2401b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMThDOjQ5NjlDOjM1Nzc3QjM6NDg1NkEyMTo2OTcwOTE0NyIsInZpc2l0b3JfaWQiOiI0MzY4Nzc5NTA0OTQ3NDA4MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9795dceb06c39193c29bf627634ec4a1a3da2b12c7c8f17370cb20b8811c6775 |
| hovercard-subject-tag | issue:762242591 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/orcasgit/python-fitbit/163/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29b28634e32d8664403413a706fdc445be54f46223e149c263042d72f735b304/orcasgit/python-fitbit/issues/163 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29b28634e32d8664403413a706fdc445be54f46223e149c263042d72f735b304/orcasgit/python-fitbit/issues/163 |
| og:image:alt | Fitbit won't allow a new application without a https callback. Probably should switch to https...this worked for me. diff --git a/gather_keys_oauth2.py b/gather_keys_oauth2.py index 39a19f8..c021ce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BigValen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/orcasgit/python-fitbit git https://github.com/orcasgit/python-fitbit.git |
| octolytics-dimension-user_id | 9833 |
| octolytics-dimension-user_login | orcasgit |
| octolytics-dimension-repository_id | 3472837 |
| octolytics-dimension-repository_nwo | orcasgit/python-fitbit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3472837 |
| octolytics-dimension-repository_network_root_nwo | orcasgit/python-fitbit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width