auth

auth module provides basic pyramid auth helpers

Auth related methods and classes.

class pyramid_fullauth.auth.BaseACLRootFactoryMixin(request)[source]

ACL list factory Mixin.

__acl__ is the attribute which stores the list.

Returns:tuple (Allow|Deny, Group name, Permission)
Return type:list

Note

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)[source]

Read all user’s groups.

Note

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.

Parameters:
Returns:

list of groups

Return type:

list