b7197041fe
Since we can now configure Keystone's auth_token middleware using our own config files, we should ship our example config to show how this is done. This moves the auth_* variables out of glance-api-paste.ini and glance-registry-paste.ini into glance-api.conf and glance-registry.conf. Fixes bug 1043490 Change-Id: Ibdaf8b2ef0f55e5e892fbd1b994dceb323f07c7b
24 lines
689 B
INI
24 lines
689 B
INI
# Default minimal pipeline
|
|
[pipeline:glance-registry]
|
|
pipeline = unauthenticated-context registryapp
|
|
|
|
# Use the following pipeline for keystone auth
|
|
# i.e. in glance-registry.conf:
|
|
# [paste_deploy]
|
|
# flavor = keystone
|
|
#
|
|
[pipeline:glance-registry-keystone]
|
|
pipeline = authtoken context registryapp
|
|
|
|
[app:registryapp]
|
|
paste.app_factory = glance.registry.api.v1:API.factory
|
|
|
|
[filter:context]
|
|
paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory
|
|
|
|
[filter:unauthenticated-context]
|
|
paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory
|
|
|
|
[filter:authtoken]
|
|
paste.filter_factory = keystone.middleware.auth_token:filter_factory
|