c23fd00818
Fixes bug 1029313. The current api-paste.ini does not provide a way to choose a pipeline: there is no way to switching a pipeline between keystone-enabled and noauth pipelines without modifying the pipeline directly. This commit introduces 'auth_strategy' flag to quantum.conf and a pipeline used is determined depending on the flag. Supported values for this flag are 'keystone' (default) and 'noauth' at the moment. Change-Id: Ieafaf31eaaec2b02727ed5d3bd36c907e50aee5b
49 lines
1.4 KiB
INI
49 lines
1.4 KiB
INI
[composite:quantum]
|
|
use = egg:Paste#urlmap
|
|
/: quantumversions
|
|
/v1.0: quantumapi_v1_0
|
|
/v1.1: quantumapi_v1_1
|
|
/v2.0: quantumapi_v2_0
|
|
|
|
[composite:quantumapi_v1_0]
|
|
use = call:quantum.auth:pipeline_factory
|
|
noauth = extensions quantumapiapp_v1_0
|
|
keystone = authtoken keystonecontext extensions quantumapiapp_v1_0
|
|
|
|
[composite:quantumapi_v1_1]
|
|
use = call:quantum.auth:pipeline_factory
|
|
noauth = extensions quantumapiapp_v1_1
|
|
keystone = authtoken keystonecontext extensions quantumapiapp_v1_1
|
|
|
|
[composite:quantumapi_v2_0]
|
|
use = call:quantum.auth:pipeline_factory
|
|
noauth = extensions quantumapiapp_v2_0
|
|
keystone = authtoken keystonecontext extensions quantumapiapp_v2_0
|
|
|
|
[filter:keystonecontext]
|
|
paste.filter_factory = quantum.auth:QuantumKeystoneContext.factory
|
|
|
|
[filter:authtoken]
|
|
paste.filter_factory = keystone.middleware.auth_token:filter_factory
|
|
auth_host = 127.0.0.1
|
|
auth_port = 35357
|
|
auth_protocol = http
|
|
admin_tenant_name = %SERVICE_TENANT_NAME%
|
|
admin_user = %SERVICE_USER%
|
|
admin_password = %SERVICE_PASSWORD%
|
|
|
|
[filter:extensions]
|
|
paste.filter_factory = quantum.extensions.extensions:plugin_aware_extension_middleware_factory
|
|
|
|
[app:quantumversions]
|
|
paste.app_factory = quantum.api.versions:Versions.factory
|
|
|
|
[app:quantumapiapp_v1_0]
|
|
paste.app_factory = quantum.api:APIRouterV10.factory
|
|
|
|
[app:quantumapiapp_v1_1]
|
|
paste.app_factory = quantum.api:APIRouterV11.factory
|
|
|
|
[app:quantumapiapp_v2_0]
|
|
paste.app_factory = quantum.api.v2.router:APIRouter.factory
|