@classmethod
    def recover_session(cls, session):
        if not session or (not cls.Session.RECREATE_SESSION and not session.get('auth_ref')):
            raise CloudBackendError('Invalid OpenStack session')

        backend = cls()
        return backend.Session.factory(backend, session)
Recover OpenStack session from serialized object
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/backend.py/OpenStackClient.recover_session