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 main 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, as well as OAuth authentication; external packages can also provide authentication based on an LDAP directory.

PyAMS_security also provides utilities to extract credentials from queries, like HTTP basic authentication or JWT tokens, and can also provide your own credentials extraction mechanisms.

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

Changelog

1.8.0

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

1.7.1

  • added strings constants for plug-ins labels

1.7.0

  • 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

1.6.2

  • renamed ‘skin’ module to ‘api’

1.6.1

  • correction in Gitlab-CI Pylint task

1.6.0

  • removed support for Python < 3.7

  • added custom password encoders

  • updated doctests

1.5.5

  • updated Gitlab-CI configuration

1.5.4

  • updated Gitlab-CI configuration

1.5.3

  • added wheels to Buildout configuration

1.5.2

  • updated Gitlab-CI configuration for last Python versions

1.5.1

  • updated doctests

1.5.0

  • added ISecurityManager factory configuration

  • removed Travis-CI configuration

1.4.0

  • added config.upgrade_role function, to be able to add permissions to an existing role

  • updated default site roles

  • updated doctests

1.3.1

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

1.3.0

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

1.2.1

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

1.2.0

  • 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

1.1.3

  • small updates in policy management of authenticated_user_id

1.1.2

  • updated doctests with configured cache

1.1.1

  • removed dependency on pyams_auth_http package

1.1.0

  • 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

1.0.5

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

1.0.4

  • code cleanup

1.0.3

  • handle ConnectionStateError in JWT authentication plug-in

  • updated doctests

1.0.2

  • added support for HS512 and RS512 JWT encryption protocols

1.0.1

  • updated imports in include file for tests integration

1.0.0

  • 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.

Source Distribution

pyams_security-1.8.0.tar.gz (61.2 kB view details)

Uploaded Source

Built Distributions

pyams_security-1.8.0-py3.9.egg (161.8 kB view details)

Uploaded Source

pyams_security-1.8.0-py3.8.egg (161.8 kB view details)

Uploaded Source

pyams_security-1.8.0-py3.7.egg (161.5 kB view details)

Uploaded Source

pyams_security-1.8.0-py3-none-any.whl (101.0 kB view details)

Uploaded Python 3

File details

Details for the file pyams_security-1.8.0.tar.gz.

File metadata

  • Download URL: pyams_security-1.8.0.tar.gz
  • Upload date:
  • Size: 61.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for pyams_security-1.8.0.tar.gz
Algorithm Hash digest
SHA256 8c0b7872eea2d6991beaaeb4b92cab96a9dad981f87cc3845a635d361c51b494
MD5 12a525b7fd36573aec5b419b31568a27
BLAKE2b-256 f41bdab683974d8edbc930af2746711f4394961106e728b52606763b94d2e71a

See more details on using hashes here.

File details

Details for the file pyams_security-1.8.0-py3.9.egg.

File metadata

  • Download URL: pyams_security-1.8.0-py3.9.egg
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pyams_security-1.8.0-py3.9.egg
Algorithm Hash digest
SHA256 9619bfa6915f6fe4911951935ab4ba8d80fdbaf58df1d0857a74e7c4b118a22f
MD5 f071226f35105ccbbffc54ad2f722ad0
BLAKE2b-256 4b96e0e9e948806e53412eeef5debe785f2c1cd8df839d3520e0533b9a6806f7

See more details on using hashes here.

File details

Details for the file pyams_security-1.8.0-py3.8.egg.

File metadata

  • Download URL: pyams_security-1.8.0-py3.8.egg
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pyams_security-1.8.0-py3.8.egg
Algorithm Hash digest
SHA256 242881c5f8c8a7fcb77637ab0001c66e117fe8fb97ee6732b91ecdb3cbdc4104
MD5 4e3a605e1867119d5cd6f781e882e0ad
BLAKE2b-256 597e9726d2c7905428379efeb93768593a827dfdc45769e3757d34655b0ce5a6

See more details on using hashes here.

File details

Details for the file pyams_security-1.8.0-py3.7.egg.

File metadata

  • Download URL: pyams_security-1.8.0-py3.7.egg
  • Upload date:
  • Size: 161.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for pyams_security-1.8.0-py3.7.egg
Algorithm Hash digest
SHA256 906228d86ee294691218f971d5ce99bdc6b2c90154b662a95ade77137854231a
MD5 480a7b0696ad7fd144a27685d087d0c5
BLAKE2b-256 38ada13c9ab4b432f42e6d1505adaa5551116f8c28cd72e6a986e9616b7cb3ee

See more details on using hashes here.

File details

Details for the file pyams_security-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: pyams_security-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 101.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for pyams_security-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60d7fcb3adedd9707a89e9412e9a1c822c04401b85413050c7bd6b300af1d8b5
MD5 70bdabfa097b8c4fc2e799b9a273a2ef
BLAKE2b-256 56f3b9821bafacc0085f3ef72c792645bb5bc8e71c7d8b7a18f36838260c67d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page