From 42f62d199b66a5326eb4d3037f4cab949d76b7dc Mon Sep 17 00:00:00 2001 From: niQo Date: Fri, 27 Apr 2012 12:33:58 +0200 Subject: [PATCH] use skryock API domain --- social_auth/backends/contrib/skyrock.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/social_auth/backends/contrib/skyrock.py b/social_auth/backends/contrib/skyrock.py index b65754c..3a4a344 100644 --- a/social_auth/backends/contrib/skyrock.py +++ b/social_auth/backends/contrib/skyrock.py @@ -6,8 +6,6 @@ be registered first on skyrock and the settings SKYROCK_CONSUMER_KEY and SKYROCK_CONSUMER_SECRET must be defined with they corresponding values. -User screen name is used to generate username. - By default account id is stored in extra_data field, check OAuthBackend class for details on how to extend it. """ @@ -17,13 +15,13 @@ from social_auth.backends import ConsumerBasedOAuth, OAuthBackend, USERNAME # Skyrock configuration -SKYROCK_SERVER = 'api.skyrock.com/v2' -SKYROCK_REQUEST_TOKEN_URL = 'https://%s/oauth/initiate' % SKYROCK_SERVER -SKYROCK_ACCESS_TOKEN_URL = 'https://%s/oauth/token' % SKYROCK_SERVER +SKYROCK_SERVER = 'api.skyrock.com' +SKYROCK_REQUEST_TOKEN_URL = 'https://%s/v2/oauth/initiate' % SKYROCK_SERVER +SKYROCK_ACCESS_TOKEN_URL = 'https://%s/v2/oauth/token' % SKYROCK_SERVER # Note: oauth/authorize forces the user to authorize every time. # oauth/authenticate uses their previous selection, barring revocation. -SKYROCK_AUTHORIZATION_URL = 'http://%s/oauth/authenticate' % SKYROCK_SERVER -SKYROCK_CHECK_AUTH = 'https://%s/user/get.json' % SKYROCK_SERVER +SKYROCK_AUTHORIZATION_URL = 'http://%s/v2/oauth/authenticate' % SKYROCK_SERVER +SKYROCK_CHECK_AUTH = 'https://%s/v2/user/get.json' % SKYROCK_SERVER class SkyrockBackend(OAuthBackend): -- 2.39.5