heat.common.context module¶
- class heat.common.context.ContextMiddleware(app, conf, **local_conf)[source]¶
Bases:
Middleware
- heat.common.context.ContextMiddleware_filter_factory(global_conf, **local_conf)[source]¶
Factory method for paste.deploy.
- class heat.common.context.RequestContext(username=None, password=None, aws_creds=None, auth_url=None, is_admin=None, trust_id=None, trustor_user_id=None, auth_token_info=None, region_name=None, auth_plugin=None, trusts_auth_plugin=None, **kwargs)[source]¶
Bases:
RequestContext
Stores information about the security context.
Under the security context the user accesses the system, as well as additional request information.
- property auth_plugin¶
- property clients¶
- property connection¶
- property keystone_session¶
- property keystone_v3_endpoint¶
- property session¶
- to_policy_values()[source]¶
A dictionary of context attributes to enforce policy with.
oslo.policy enforcement requires a dictionary of attributes representing the current logged in user on which it applies policy enforcement. This dictionary defines a standard list of attributes that should be available for enforcement across services.
It is expected that services will often have to override this method with either deprecated values or additional attributes used by that service specific policy.
- property transaction¶
- property transaction_ctx¶
- property trusts_auth_plugin¶
- class heat.common.context.StoredContext(username=None, password=None, aws_creds=None, auth_url=None, is_admin=None, trust_id=None, trustor_user_id=None, auth_token_info=None, region_name=None, auth_plugin=None, trusts_auth_plugin=None, **kwargs)[source]¶
Bases:
RequestContext
- property project_domain_id¶
- property roles¶
- property user_domain_id¶