Constants¶
- Everyone¶
The special principal id named
Everyone. This principal id is granted to all requests. Its actual value is the string'system.Everyone'.バージョン 2.0 で追加: Moved from
pyramid.securityintopyramid.authorization.
- Authenticated¶
The special principal id named
Authenticated. This principal id is granted to all requests which contain any other non-Everyone principal id (according to the authentication policy). Its actual value is the string'system.Authenticated'.バージョン 2.0 で追加: Moved from
pyramid.securityintopyramid.authorization.
- ALL_PERMISSIONS¶
An object that can be used as the
permissionmember of an ACE which matches all permissions unconditionally. For example, an ACE that usesALL_PERMISSIONSmight be composed like so:('Deny', 'system.Everyone', ALL_PERMISSIONS).バージョン 2.0 で追加: Moved from
pyramid.securityintopyramid.authorization.
- DENY_ALL¶
A convenience shorthand ACE that defines
('Deny', 'system.Everyone', ALL_PERMISSIONS). This is often used as the last ACE in an ACL in systems that use an "inheriting" security policy, representing the concept "don't inherit any other ACEs".バージョン 2.0 で追加: Moved from
pyramid.securityintopyramid.authorization.
Return Values¶
- class ACLDenied(ace, acl, permission, principals, context)[ソース]¶
- static __new__(cls, ace, acl, permission, principals, context)¶
Create a new instance.
- パラメータ
ace -- The ACE that matched, triggering the result.
acl -- The ACL containing
ace.permission -- The required permission.
principals -- The list of principals provided.
バージョン 2.0 で追加: Moved from
pyramid.securityintopyramid.authorization.
- property msg¶
A string indicating why the result was generated.
- class ACLAllowed(ace, acl, permission, principals, context)[ソース]¶
- static __new__(cls, ace, acl, permission, principals, context)¶
Create a new instance.
- パラメータ
ace -- The ACE that matched, triggering the result.
acl -- The ACL containing
ace.permission -- The required permission.
principals -- The list of principals provided.
バージョン 2.0 で追加: Moved from
pyramid.securityintopyramid.authorization.
- property msg¶
A string indicating why the result was generated.