diff --git a/templates/barbican-api-paste.ini.j2 b/templates/barbican-api-paste.ini.j2 index 54e2c22..90aa06d 100644 --- a/templates/barbican-api-paste.ini.j2 +++ b/templates/barbican-api-paste.ini.j2 @@ -5,24 +5,24 @@ use = egg:Paste#urlmap # Use this pipeline for Barbican API - versions no authentication [pipeline:barbican_version] -pipeline = cors versionapp +pipeline = cors http_proxy_to_wsgi versionapp # Use this pipeline for Barbican API - DEFAULT no authentication [pipeline:barbican_api] -pipeline = cors unauthenticated-context apiapp +pipeline = cors http_proxy_to_wsgi unauthenticated-context apiapp #Use this pipeline to activate a repoze.profile middleware and HTTP port, # to provide profiling information for the REST API processing. [pipeline:barbican-profile] -pipeline = cors unauthenticated-context egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp +pipeline = cors http_proxy_to_wsgi unauthenticated-context egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp #Use this pipeline for keystone auth [pipeline:barbican-api-keystone] -pipeline = cors authtoken context apiapp +pipeline = cors http_proxy_to_wsgi authtoken context apiapp #Use this pipeline for keystone auth with audit feature [pipeline:barbican-api-keystone-audit] -pipeline = authtoken context audit apiapp +pipeline = http_proxy_to_wsgi authtoken context audit apiapp [app:apiapp] paste.app_factory = barbican.api.app:create_main_app @@ -58,3 +58,6 @@ unwind = false [filter:cors] paste.filter_factory = oslo_middleware.cors:filter_factory oslo_config_project = barbican + +[filter:http_proxy_to_wsgi] +paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory