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 1, 2013
1 parent 9298756 commit 5d131ca
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 @@ -618,12 +618,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"

@return_future
def authenticate_redirect(self, callback_uri=None, callback=None):
Expand Down

0 comments on commit 5d131ca

Please sign in to comment.