Token-based Authentication Middleware
This WSGI component:
Refer to: http://docs.openstack.org/developer/keystonemiddleware/middlewarearchitecture.html
Run this module directly to start a protected echo service on port 8000:
$ python -m keystonemiddleware.auth_token
When the auth_token module authenticates a request, the echo service will respond with all the environment variables presented to it by this module.
The auth_token middleware uses headers sent in by the client on the request and sets headers and environment variables for the downstream WSGI component.
When using composite authentication (a user and service token are present) additional service headers relating to the service user will be added. They take the same form as the standard headers but add ‘_SERVICE_’. These headers will not exist in the environment if no service token is present.
json encoded service catalog (optional). For compatibility reasons this catalog will always be in the V2 catalog format even if it is a v3 token.
These variables are set in the request environment for use by the downstream WSGI component.
Bases: object
Middleware that handles authenticating client calls.
Returns a WSGI filter app for use with paste.deploy.