RequestContext: context for requests that persist through all of synaps.
-
class RequestContext(user_id, project_id, is_admin=None, read_deleted='no', roles=None, remote_address=None, timestamp=None, request_id=None, auth_token=None, strategy='noauth', overwrite=True)
Bases: object
Security context and request information.
Represents the user taking a given action within the system.
-
elevated(read_deleted=None, overwrite=False)
Return a version of this context with admin flag set.
-
classmethod from_dict(values)
-
to_dict()
-
generate_request_id()
-
get_admin_context(read_deleted='no')