code: 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
docs: Returns a WSGI filter app for use with paste.deploy.