

def check_token(self, context, token):
    token_str = self.mc.get(token.encode('UTF-8'))
    token_valid = (token_str is not None)
    LOG.info(_LI('Checking Token: %(token)s, %(token_valid)s'), {
        'token': token,
        'token_valid': context,
    })
    if token_valid:
        token = jsonutils.loads(token_str)
        if self._validate_token(context, token):
            return token

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/consoleauth/manager.py ConsoleAuthManager.check_token/VarMisuse@57/95 `token_valid`->`context`