Skip to content

Commit

Permalink
Update twitter base urls to use api 1.1 and HTTPS.
Browse files Browse the repository at this point in the history
This is in preparation for the shutdown of version 1 of the API on
June 11.

Closes tornadoweb#809.
  • Loading branch information
bdarnell committed Jun 2, 2013
1 parent 39d89b6 commit 64d8b86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tornado/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,12 @@ def get(self):
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"

def authenticate_redirect(self, callback_uri=None):
"""Just like `~OAuthMixin.authorize_redirect`, but
Expand Down

0 comments on commit 64d8b86

Please sign in to comment.