Seyi Ogunyemi committed aaa343a

Switched to python-oauth2

  • Participants
  • Parent commits 11ead2d

Comments (0)

Files changed (1)

File social_auth/backends/

 from 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
     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()