Merge "Clean up the middleware docs"
This commit is contained in:
commit
746a20d606
@ -111,7 +111,9 @@ Configuration
|
|||||||
-------------
|
-------------
|
||||||
|
|
||||||
The middleware is configured within the config file of the main application as
|
The middleware is configured within the config file of the main application as
|
||||||
a WSGI component. Example for the auth_token middleware::
|
a WSGI component. Example for the auth_token middleware:
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
[app:myService]
|
[app:myService]
|
||||||
paste.app_factory = myService:app_factory
|
paste.app_factory = myService:app_factory
|
||||||
@ -255,15 +257,18 @@ a WSGI component. Example for the auth_token middleware::
|
|||||||
For services which have a separate paste-deploy ini file, auth_token middleware
|
For services which have a separate paste-deploy ini file, auth_token middleware
|
||||||
can be alternatively configured in [keystone_authtoken] section in the main
|
can be alternatively configured in [keystone_authtoken] section in the main
|
||||||
config file. For example in Nova, all middleware parameters can be removed
|
config file. For example in Nova, all middleware parameters can be removed
|
||||||
from api-paste.ini::
|
from ``api-paste.ini``:
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
[filter:authtoken]
|
[filter:authtoken]
|
||||||
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
||||||
|
|
||||||
and set in nova.conf::
|
and set in ``nova.conf``:
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
...
|
|
||||||
auth_strategy=keystone
|
auth_strategy=keystone
|
||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
|
Loading…
Reference in New Issue
Block a user