Skip to main content

PyAMS security management package

Project description

What is PyAMS?

PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications and content management with the Pyramid framework.

PyAMS is actually mainly used to manage web sites through content management applications (CMS, see PyAMS_content package), but many features are generic and can be used inside any kind of web application.

All PyAMS documentation is available on ReadTheDocs; source code is available on Gitlab and pushed to Github.

What is PyAMS_security?

PyAMS_security is a core extension package for PyAMS which provides all base security-related features; the package provides a custom authentication policy which is based on a custom “security manager”. This utility is a pluggable tool which is handling system users, local users and groups; external packages are available to provide other authentication and security mechanisms, like HTTP authentication, JWT tokens management, and OAuth, Azure or LDAP based authentication.

Finally, PyAMS_security provides ACLs and roles management, as well as custom schema fields to store roles assigned to principals.



  • reStructuredText formatting error…


  • added constant for unknown principal ID
  • added constants for principal and group ID formatters


  • added attribute to security manager to show link in home page


  • added strings constants for plug-ins labels


  • added ProtectedViewObjectMixin, to be used as base for any object using dynamic permission property
  • added “action” argument to “get_edit_permission()” function; this allows to register custom adapters to IViewContextPermissionChecker with this name, to be able to check edit permissions for custom actions
  • added ISecurityContext interface


  • renamed ‘skin’ module to ‘api’


  • correction in Gitlab-CI Pylint task


  • removed support for Python < 3.7
  • added custom password encoders
  • updated doctests


  • updated Gitlab-CI configuration


  • updated Gitlab-CI configuration


  • added wheels to Buildout configuration


  • updated Gitlab-CI configuration for last Python versions


  • updated doctests


  • added ISecurityManager factory configuration
  • removed Travis-CI configuration


  • added config.upgrade_role function, to be able to add permissions to an existing role
  • updated default site roles
  • updated doctests


  • updated security manager interface to add registered credentials plug-ins names


  • added argument in “find_principals” methods to only allow exact match


  • use updated WSGI decorator to prevent storage of null values into request environment


  • updated roles management; this will allow to extend supported roles of a given class just by adding adapters, without modifying the original class
  • moved PyAMS security policy to dedicated module
  • added registration of standard roles and security policy
  • add factories registration in default security plug-ins
  • updated users registration process
  • updated adapter_config decorator arguments
  • updated doctests


  • small updates in policy management of authenticated_user_id


  • updated doctests with configured cache


  • removed dependency on pyams_auth_http package


  • moved authentication plug-ins to dedicated packages (see pyams_auth_http, pyams_auth_jwt…)
  • moved PyAMS authentication policy to dedicated module
  • handle ConnectionStateError in authentication policy
  • updated doctests


  • simple version switch to avoid mismatch in Buildout configuration file… :(


  • code cleanup


  • handle ConnectionStateError in JWT authentication plug-in
  • updated doctests


  • added support for HS512 and RS512 JWT encryption protocols


  • updated imports in include file for tests integration


  • initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyams-security, version 1.8.2
Filename, size File type Python version Upload date Hashes
Filename, size pyams_security-1.8.2-py3.7.egg (161.7 kB) File type Egg Python version 1.8.2 Upload date Hashes View
Filename, size pyams_security-1.8.2-py3.8.egg (162.1 kB) File type Egg Python version 1.8.2 Upload date Hashes View
Filename, size pyams_security-1.8.2-py3.9.egg (162.0 kB) File type Egg Python version 1.8.2 Upload date Hashes View
Filename, size pyams_security-1.8.2-py3-none-any.whl (101.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyams_security-1.8.2.tar.gz (61.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page