def auth():
    ctx = context.current()
    return ctx.auth_plugin or token_auth(token=context.get_auth_token(),
                                         project_id=ctx.tenant_id)
Return a token auth plugin for the current context.
dataset/ETHPy150Open openstack/sahara/sahara/utils/openstack/keystone.py/auth