MCPcopy
hub / github.com/tornadoweb/tornado / get_current_user

Method get_current_user

demos/google_auth/main.py:33–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31
32class BaseHandler(tornado.web.RequestHandler):
33 def get_current_user(self):
34 user_cookie = self.get_signed_cookie("googledemo_user")
35 if user_cookie:
36 return json.loads(user_cookie)
37 return None
38
39
40class IndexHandler(BaseHandler, tornado.auth.GoogleOAuth2Mixin):

Callers

nothing calls this directly

Calls 1

get_signed_cookieMethod · 0.80

Tested by

no test coverage detected