def filter_factory(global_conf, **local_conf):
    conf = global_conf.copy()
    conf.update(local_conf)

    def auth_filter(app):
        return KeystoneAuth(app, conf)
    return auth_filter
Returns a WSGI filter app for use with paste.deploy.
dataset/ETHPy150Open openstack/swift/swift/common/middleware/keystoneauth.py/filter_factory