async def identify(self, request):
if hasattr(request, '<STR_LIT>'):<EOL><INDENT>return request._session_identity<EOL><DEDENT>token = request.cookies.get(self._cookie_name)<EOL>if token is None:<EOL><INDENT>token = getAuthorizationTokenFromHeader(request)<EOL>if token is None:<EOL><INDENT>raise Unauthorized('<STR_LIT>')<EOL><DEDENT><DEDENT>identity = await self.decode_jwt(token)<EOL>setattr(request, '<STR_LIT>', identity)<EOL>return identity<EOL>
从request中得到登录身份identity