Fix initialization of auth token AuthProtocol

AuthProtocol expects the conf paramter to be in the form
{"oslo_config_config": cfg.CONF} if you want to use your own oslo config
object. This change ensures we init AuthProtocol with the right form of
configuration.

Change-Id: I7f8abf200c6fcbf83c5a7d5c867fdb56d95923c3
This commit is contained in:
Sam Betts 2018-01-05 18:15:28 +00:00
parent bf8cb05aa4
commit 12d8500ce5
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ def setup_app(pecan_config=None, extra_hooks=None):
if CONF.auth_strategy == "keystone":
app = auth_token.AuthTokenMiddleware(
app, dict(cfg.CONF),
app, {"oslo_config_config": cfg.CONF},
public_api_routes=pecan_config.app.acl_public_routes)
if CONF.profiler.enabled: