Bases: keystonemiddleware.auth_token.BaseAuthProtocol
Build the authentication context from the request auth token.
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.
Bases: keystone.common.wsgi.Middleware
A trivial filter that checks for a pre-defined admin token.
Sets ‘is_admin’ to true in the context, expected to be checked by methods that are admin-only.
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.
Bases: keystone.common.wsgi.Middleware
Middleware filter to handle URL normalization.