auth module provides basic pyramid auth helpers
Auth related methods and classes.
- class pyramid_fullauth.auth.BaseACLRootFactoryMixin(request)¶
ACL list factory Mixin.
__acl__ is the attribute which stores the list.
Returns: tuple (Allow|Deny, Group name, Permission) Return type: list
Can be converted later to database stored (sqlalchemy session is accessible through request.db)
Assing request as instance attribute.
- pyramid_fullauth.auth.groupfinder(userid, request)¶
Read all user’s groups.
Adds s:inactive group to users who has not activated their account, and s:user group to those, who did. If user has is_admin flag, he gets s:superadmin group set
Might be useful, when you want restrict access to some parts of your application, but still allow log in, and access to some other parts.
list of groups