def pipeline_factory(loader, global_conf, **local_conf):
 pipeline = local_conf[cfg.CONF.auth_strategy]
 pipeline = pipeline.split()
 filters = [loader.get_filter(n) for n in pipeline[:(-1)]]
 app = loader.get_app(pipeline[(-1)])
 filters.reverse()
 for filter in filters:
  app = filter(app)
 return app

def pipeline_factory ( loader , global_conf , ** local_conf ) : pipeline = local_conf [ cfg . CONF . auth_strategy ] pipeline = pipeline . split ( ) filters = [ loader . get_filter ( n ) for n in pipeline [ : ( - 1 ) ] ] app = loader . get_app ( pipeline [ ( - 1 ) ] ) filters . reverse ( ) for filter in filters : app = filter ( app ) return app
create a paste pipeline based on the auth_strategy config option .