Skip to content

Commit

Permalink
Get the current user's twitter information with /account/verify_crede…
Browse files Browse the repository at this point in the history
…ntials.

This is more robust against potentially-changing screen names.

Closes tornadoweb#51.
  • Loading branch information
bdarnell committed Jun 1, 2013
1 parent 5d131ca commit 85ff9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def _oauth_consumer_token(self):
@gen.coroutine
def _oauth_get_user_future(self, access_token):
user = yield self.twitter_request(
"/users/show/" + escape.native_str(access_token["screen_name"]),
"/account/verify_credentials",
access_token=access_token)
if user:
user["username"] = user["screen_name"]
Expand Down

0 comments on commit 85ff9eb

Please sign in to comment.