keystone.middleware package¶
Submodules¶
keystone.middleware.auth module¶
-
class
keystone.middleware.auth.AuthContextMiddleware(application)[source]¶ Bases:
keystone.common.wsgi.MiddlewareBuild the authentication context from the request auth token.
keystone.middleware.core module¶
-
class
keystone.middleware.core.AdminTokenAuthMiddleware(application)[source]¶ Bases:
keystone.common.wsgi.MiddlewareA 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.
-
class
keystone.middleware.core.JsonBodyMiddleware(application)[source]¶ Bases:
keystone.common.wsgi.MiddlewareMiddleware 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.
-
class
keystone.middleware.core.NormalizingFilter(application)[source]¶ Bases:
keystone.common.wsgi.MiddlewareMiddleware filter to handle URL normalization.