def filter_factory(global_conf, **local_conf):
conf = global_conf.copy()<EOL>conf.update(local_conf)<EOL>def auth_filter(app):<EOL><INDENT>return Swauth(app, conf)<EOL><DEDENT>return auth_filter<EOL>
Returns a WSGI filter app for use with paste.deploy.