Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix dailymotion backend

  • Loading branch information...
commit 45f629b2838cd74f43b7a8c52361b98a766240ab 1 parent 986d85c
@omab authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 social_auth/backends/contrib/dailymotion.py
View
4 social_auth/backends/contrib/dailymotion.py
@@ -29,8 +29,6 @@ class for details on how to extend it.
# oauth/authenticate uses their previous selection, barring revocation.
DAILYMOTION_AUTHORIZATION_URL = 'https://%s/oauth/authorize' % \
DAILYMOTION_SERVER
-DAILYMOTION_CHECK_AUTH = 'https://%s/1.1/account/verify_credentials.json' % \
- DAILYMOTION_SERVER
DAILYMOTION_CHECK_AUTH = 'https://%s/me/?access_token=' % DAILYMOTION_SERVER
@@ -60,7 +58,7 @@ class DailymotionAuth(BaseOAuth2):
def user_data(self, access_token, *args, **kwargs):
"""Return user data provided"""
try:
- data = dsa_urlopen(DAILYMOTION_SERVER + access_token).read()
+ data = dsa_urlopen(DAILYMOTION_CHECK_AUTH + access_token).read()
return simplejson.loads(data)
except (ValueError, HTTPError):
return None

0 comments on commit 45f629b

Please sign in to comment.
Something went wrong with that request. Please try again.