keystone.middleware.auth.
AuthContextMiddleware
(*args, **kwargs)[source]¶Bases: keystonemiddleware.auth_token.BaseAuthProtocol
Build the authentication context from the request auth token.
factory
(global_config, **local_config)[source]¶Used for paste app factories in paste.deploy config files.
Any local configuration (that is, values under the [filter:APPNAME] section of the paste config) will be passed into the __init__ method as kwargs.
A hypothetical configuration would look like:
[filter:analytics] redis_host = 127.0.0.1 paste.filter_factory = keystone.analytics:Analytics.factory
which would result in a call to the Analytics class as
import keystone.analytics keystone.analytics.Analytics(app, redis_host=‘127.0.0.1’)
You could of course re-implement the factory method in subclasses, but using the kwarg passing it shouldn’t be necessary.
kwargs_to_fetch_token
= True¶keystone.middleware.core.
JsonBodyMiddleware
(application)[source]¶Bases: keystone.common.wsgi.Middleware
Middleware to allow method arguments to be passed as serialized JSON.
Accepting arguments as JSON is useful for accepting data that may be more complex than simple primitives.
Filters out the parameters self, context and anything beginning with an underscore.
keystone.middleware.core.
NormalizingFilter
(application)[source]¶Bases: keystone.common.wsgi.Middleware
Middleware filter to handle URL normalization.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.