]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/oauthauth/authentication.py
be able to handle Unicode GET params in auth.py properly
[osqa.git] / forum_modules / oauthauth / authentication.py
index 93cdc593422df145343699bc1117c7a6ac23f3b7..54a6b4f5adfbb7006fd644b1b5310ae72f6b4710 100644 (file)
@@ -6,7 +6,7 @@ try:
 except ImportError:
     from django.utils import simplejson
 
-from lib import oauth
+from lib import oauth2
 import settings
 
 class TwitterAuthConsumer(OAuthAbstractAuthConsumer):
@@ -15,9 +15,9 @@ class TwitterAuthConsumer(OAuthAbstractAuthConsumer):
                 str(settings.TWITTER_CONSUMER_KEY),
                 str(settings.TWITTER_CONSUMER_SECRET),
                 "twitter.com",
-                "https://twitter.com/oauth/request_token",
-                "https://twitter.com/oauth/access_token",
-                "https://twitter.com/oauth/authorize",
+                "https://api.twitter.com/oauth/request_token",
+                "https://api.twitter.com/oauth/access_token",
+                "https://api.twitter.com/oauth/authorize",
         )
 
     def get_user_data(self, key):