]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update twitter base urls to use api 1.1 and HTTPS.
authorBen Darnell <ben@bendarnell.com>
Sat, 1 Jun 2013 01:49:08 +0000 (21:49 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 1 Jun 2013 02:02:58 +0000 (22:02 -0400)
This is in preparation for the shutdown of version 1 of the API on
June 11.

Closes #809.

tornado/auth.py

index d210d862cccd4f94e6aa7d4092cc0f5a16bd295e..773d9e4824fc17c11ab98b2ca2f1c260b48c68fa 100644 (file)
@@ -618,12 +618,12 @@ class TwitterMixin(OAuthMixin):
     and all of the custom Twitter user attributes described at
     https://dev.twitter.com/docs/api/1.1/get/users/show
     """
-    _OAUTH_REQUEST_TOKEN_URL = "http://api.twitter.com/oauth/request_token"
-    _OAUTH_ACCESS_TOKEN_URL = "http://api.twitter.com/oauth/access_token"
-    _OAUTH_AUTHORIZE_URL = "http://api.twitter.com/oauth/authorize"
-    _OAUTH_AUTHENTICATE_URL = "http://api.twitter.com/oauth/authenticate"
+    _OAUTH_REQUEST_TOKEN_URL = "https://api.twitter.com/oauth/request_token"
+    _OAUTH_ACCESS_TOKEN_URL = "https://api.twitter.com/oauth/access_token"
+    _OAUTH_AUTHORIZE_URL = "https://api.twitter.com/oauth/authorize"
+    _OAUTH_AUTHENTICATE_URL = "https://api.twitter.com/oauth/authenticate"
     _OAUTH_NO_CALLBACKS = False
-    _TWITTER_BASE_URL = "http://api.twitter.com/1"
+    _TWITTER_BASE_URL = "https://api.twitter.com/1.1"
 
     @return_future
     def authenticate_redirect(self, callback_uri=None, callback=None):