From 5d131ca6114b7d2cde1f8047b1ec35b92f1c1ffb Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Fri, 31 May 2013 21:49:08 -0400 Subject: [PATCH] Update twitter base urls to use api 1.1 and HTTPS. This is in preparation for the shutdown of version 1 of the API on June 11. Closes #809. --- tornado/auth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tornado/auth.py b/tornado/auth.py index d210d862c..773d9e482 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -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): -- 2.47.2