The 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.