cinder.api.middleware.auth module¶
Common Auth Middleware.
- class CinderKeystoneContext(application)¶
Bases:
Middleware
Make a request context from keystone headers.
- ENV_OVERWRITES = {'X_PROJECT_DOMAIN_ID': 'project_domain_id', 'X_PROJECT_DOMAIN_NAME': 'project_domain_name', 'X_USER_DOMAIN_ID': 'user_domain_id', 'X_USER_DOMAIN_NAME': 'user_domain_name'}¶
- class InjectContext(context, *args, **kwargs)¶
Bases:
Middleware
Add a ‘cinder.context’ to WSGI environ.
- class NoAuthMiddleware(application)¶
Bases:
NoAuthMiddlewareBase
Return a fake token if one isn’t specified.
Sets project_id in URLs.
- class NoAuthMiddlewareBase(application)¶
Bases:
Middleware
Return a fake token if one isn’t specified.
- base_call(req, project_id_in_path=False)¶
- class NoAuthMiddlewareIncludeProjectID(application)¶
Bases:
NoAuthMiddlewareBase
Return a fake token if one isn’t specified.
Does not set project_id in URLs.
- pipeline_factory(loader, global_conf, **local_conf)¶
A paste pipeline replica that keys off of auth_strategy.