[Python-modules-commits] [python-social-auth] 296/322: fix Fitbit OAuth 1 authorization URL

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:13:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.10
in repository python-social-auth.

commit cb82dfb7ef1c0273acc4aabb32c34317dcd8de4a
Author: blurrcat <blurrcat at gmail.com>
Date:   Wed May 20 09:35:36 2015 +0800

    fix Fitbit OAuth 1 authorization URL
    
    According to
    https://wiki.fitbit.com/display/API/OAuth+1.0a+Authentication#OAuth1.0aAuthentication-Notes,
    the base url for the oauth authroization page is
    https://www.fitbit.com/, not https://api.fitbit.com. Soon they will
    redirect authorize requests to api.fitbit.com to www.fitbit.com,
    which will increase page load time for end users
---
 social/backends/fitbit.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/backends/fitbit.py b/social/backends/fitbit.py
index 1e80898..655a711 100644
--- a/social/backends/fitbit.py
+++ b/social/backends/fitbit.py
@@ -8,7 +8,7 @@ from social.backends.oauth import BaseOAuth1
 class FitbitOAuth(BaseOAuth1):
     """Fitbit OAuth authentication backend"""
     name = 'fitbit'
-    AUTHORIZATION_URL = 'https://api.fitbit.com/oauth/authorize'
+    AUTHORIZATION_URL = 'https://www.fitbit.com/oauth/authorize'
     REQUEST_TOKEN_URL = 'https://api.fitbit.com/oauth/request_token'
     ACCESS_TOKEN_URL = 'https://api.fitbit.com/oauth/access_token'
     ID_KEY = 'encodedId'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list