Merge pull request #3685 from minrk/session-id-model

Add Session id to token/identify models
This commit is contained in:
Erik Sundell
2021-11-18 13:39:34 +01:00
committed by GitHub
6 changed files with 1068 additions and 842 deletions

View File

@@ -346,6 +346,7 @@ class BaseHandler(RequestHandler):
auth_info['auth_state'] = await user.get_auth_state()
return await self.auth_to_user(auth_info, user)
@functools.lru_cache()
def get_token(self):
"""get token from authorization header"""
token = self.get_auth_token()