def client_from_auth(auth):
    session = sessions.cache().get_session(sessions.SESSION_TYPE_KEYSTONE)
    if CONF.use_identity_api_v3:
        client_class = keystone_client_v3.Client
    else:
        client_class = keystone_client.Client
    return client_class(session=session, auth=auth)
Return a session based client from the auth plugin provided.
dataset/ETHPy150Open openstack/sahara/sahara/utils/openstack/keystone.py/client_from_auth