Jay Pipes | 8cafc80 | 2012-01-16 22:01:06 -0500 | [diff] [blame] | 1 | [pipeline:glance-registry] |
| 2 | #pipeline = context registryapp |
| 3 | # NOTE: use the following pipeline for keystone |
| 4 | pipeline = authtoken auth-context context registryapp |
| 5 | |
| 6 | [app:registryapp] |
| 7 | paste.app_factory = glance.common.wsgi:app_factory |
| 8 | glance.app_factory = glance.registry.api.v1:API |
| 9 | |
| 10 | [filter:context] |
| 11 | context_class = glance.registry.context.RequestContext |
| 12 | paste.filter_factory = glance.common.wsgi:filter_factory |
| 13 | glance.filter_factory = glance.common.context:ContextMiddleware |
| 14 | |
| 15 | [filter:authtoken] |
| 16 | paste.filter_factory = keystone.middleware.auth_token:filter_factory |
| 17 | service_host = %KEYSTONE_SERVICE_HOST% |
| 18 | service_port = %KEYSTONE_SERVICE_PORT% |
| 19 | service_protocol = %KEYSTONE_SERVICE_PROTOCOL% |
| 20 | auth_host = %KEYSTONE_AUTH_HOST% |
| 21 | auth_port = %KEYSTONE_AUTH_PORT% |
| 22 | auth_protocol = %KEYSTONE_AUTH_PROTOCOL% |
| 23 | auth_uri = %KEYSTONE_SERVICE_PROTOCOL%://%KEYSTONE_SERVICE_HOST%:%KEYSTONE_SERVICE_PORT%/ |
| 24 | admin_token = %SERVICE_TOKEN% |
| 25 | |
| 26 | [filter:auth-context] |
| 27 | context_class = glance.registry.context.RequestContext |
| 28 | paste.filter_factory = glance.common.wsgi:filter_factory |
| 29 | glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware |