def is_logged_in(self, name_id):
        identity = self.users.get_identity(name_id)[0]
        return bool(identity)
Check if user is in the cache
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pysaml2-2.4.0/src/saml2/client.py/Saml2Client.is_logged_in