karbor.api.middleware package

Submodules

karbor.api.middleware.auth module

Common Auth Middleware.

class karbor.api.middleware.auth.InjectContext(context, *args, **kwargs)

Bases: karbor.wsgi.common.Middleware

Add a ‘karbor.context’ to WSGI environment.

class karbor.api.middleware.auth.KarborKeystoneContext(application)

Bases: karbor.wsgi.common.Middleware

Make a request context from keystone headers.

class karbor.api.middleware.auth.NoAuthMiddleware(application)

Bases: karbor.wsgi.common.Middleware

Return a fake token if one isn’t specified.

karbor.api.middleware.auth.pipeline_factory(loader, global_conf, **local_conf)

A paste pipeline replica that keys off of auth_strategy.

karbor.api.middleware.fault module

class karbor.api.middleware.fault.FaultWrapper(application)

Bases: karbor.wsgi.common.Middleware

Calls down the middleware stack, making exceptions into faults.

static status_to_type(status)

Module contents