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

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