diff --git a/templates/default/api-paste.ini.erb b/templates/default/api-paste.ini.erb index 3e90938..9df7365 100644 --- a/templates/default/api-paste.ini.erb +++ b/templates/default/api-paste.ini.erb @@ -2,7 +2,7 @@ # heat-api pipeline [pipeline:heat-api] -pipeline = faultwrap versionnegotiation authtoken context apiv1app +pipeline = faultwrap versionnegotiation authurl authtoken context apiv1app # heat-api pipeline for standalone heat # ie. uses alternative auth backend that authenticates users against keystone @@ -75,9 +75,13 @@ paste.filter_factory = heat.common.context:ContextMiddleware_filter_factory [filter:ec2authtoken] paste.filter_factory = heat.api.aws.ec2token:EC2Token_filter_factory +# Middleware to set auth_url header appropriately +[filter:authurl] +paste.filter_factory = heat.common.auth_url:filter_factory + # Auth middleware that validates token against keystone [filter:authtoken] -paste.filter_factory = heat.common.auth_token:filter_factory +paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory # Auth middleware that validates username/password against keystone [filter:authpassword]