def token_from_auth(auth):
    return keystone_session.Session(
        auth=auth, verify=CONF.generic_session_verify).get_token()
Return an authentication token from an auth plugin.
dataset/ETHPy150Open openstack/sahara/sahara/utils/openstack/keystone.py/token_from_auth