Configuration¶
Mara Configuration Values¶
The following configuration values are used by this module. They are defined as python functions in mara_acl.config
and can be changed with the monkey patch from Mara App. An example can be found here.
- mara_acl.config.resources() [<class 'mara_page.acl.AclResource'>]¶
All resources that are protected by the acl
- mara_acl.config.role_for_new_user(is_first_user: bool = False, email: str = 'foo@bar.com') str¶
The role for automatically created users
- mara_acl.config.initial_permissions() [[<class 'str'>, <class 'str'>]]¶
The initial permissions that are added when the first user is created
- mara_acl.config.email_http_header() str¶
The http header that contains the email of the authenticated user
- mara_acl.config.require_email_http_header() str¶
Whether the email http header needs to be present in the request. If disabled, then “guest@localhost” will be used. Don’t disable on production
- mara_acl.config.whitelisted_uris() [<class 'str'>]¶
Which uris to exclude from the acl