From: Seyi Ogunyemi Date: Sun, 6 Mar 2011 01:19:23 +0000 (+0000) Subject: Switched to python-oauth2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cbe7dbd53f2f1f74a5f80840ef62d0cc2109d6fe;p=django-social-auth.git Switched to python-oauth2 --- diff --git a/social_auth/backends/__init__.py b/social_auth/backends/__init__.py index ca13e8b..dee1770 100644 --- a/social_auth/backends/__init__.py +++ b/social_auth/backends/__init__.py @@ -17,8 +17,8 @@ from openid.consumer.consumer import Consumer, SUCCESS, CANCEL, FAILURE from openid.consumer.discover import DiscoveryFailure from openid.extensions import sreg, ax -from oauth.oauth import OAuthConsumer, OAuthToken, OAuthRequest, \ - OAuthSignatureMethod_HMAC_SHA1 +from oauth2 import Consumer as OAuthConsumer, Token as OAuthToken, Request as OAuthRequest, \ + SignatureMethod_HMAC_SHA1 as OAuthSignatureMethod_HMAC_SHA1 from django.conf import settings from django.contrib.auth import authenticate @@ -542,7 +542,7 @@ class ConsumerBasedOAuth(BaseOAuth): def fetch_response(self, request): """Executes request and fetchs service response""" - self.connection.request(request.http_method, request.to_url()) + self.connection.request(request.method, request.to_url()) response = self.connection.getresponse() return response.read()