keystone.middleware package

Submodules

keystone.middleware.auth module

class keystone.middleware.auth.AuthContextMiddleware(application)[source]

Bases: keystone.common.wsgi.Middleware

Build the authentication context from the request auth token.

process_request(request)[source]

keystone.middleware.core module

class keystone.middleware.core.AdminTokenAuthMiddleware(application)[source]

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.

process_request(request)[source]
class 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.

process_request(request)[source]
class keystone.middleware.core.NormalizingFilter(application)[source]

Bases: keystone.common.wsgi.Middleware

Middleware filter to handle URL normalization.

process_request(request)[source]

Normalizes URLs.

class keystone.middleware.core.TokenAuthMiddleware(application)[source]

Bases: keystone.common.wsgi.Middleware

process_request(request)[source]

Module contents

Table Of Contents

Previous topic

keystone.identity.shadow_backends package

Next topic

keystone.models package

Project Source

This Page