glance/etc/glance-registry-paste.ini
Yaguang Tang a3a87e49f2 Use auth_token middleware from python-keystoneclient.
auth_token middleware has been moved from keystone to python-keystoneclient,
so add python-keystoneclient dependency.

Change-Id: Ic4122d575b26277f68a4336c27f12a67fbdbbd20
2012-11-28 10:30:50 +08:00

20 lines
626 B
INI

# Use this pipeline for no auth - DEFAULT
[pipeline:glance-registry]
pipeline = unauthenticated-context registryapp
# Use this pipeline for keystone auth
[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 = keystoneclient.middleware.auth_token:filter_factory