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:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user