Skip to main content

PyAMS authentication module using API keys

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. Doctests are available in the doctests source folder.

What is PyAMS API keys?

PyAMS API keys is an extension module which can be used to allow API keys as authentication credentials.

Each defined API key is seen as a classic principal to which you can grant roles as usual. An API key can be defined with an expiration date, and can be revoked or deleted at any time by an administrator.

An API key can also be bound to a specific principal; in this case, using this API key will be equivalent to being connected with the matching principal credentials.

At first, API keys can only be provided using a specific HTTP header which can be configured for all keys; maybe other authentication modes will be provided in future versions.

Changelog

2.1.2

  • updated credentials extraction to handle use cases where several API keys don’t use the same request argument name

2.1.1

  • updated Gitlab CI

2.1.0

  • added support for API keys provided via request parameters instead of HTTP headers

2.0.2

  • refactored plugin methods decorators

  • replace datetime.utcnow call with datime.now(timezone.utc)

  • added support for Python 3.12

2.0.1

  • updated modal forms title

2.0.0

  • upgraded to Pyramid 2.0

1.0.1

  • interface cleanup

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_auth_apikey-2.1.2.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyams_auth_apikey-2.1.2-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file pyams_auth_apikey-2.1.2.tar.gz.

File metadata

  • Download URL: pyams_auth_apikey-2.1.2.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for pyams_auth_apikey-2.1.2.tar.gz
Algorithm Hash digest
SHA256 cc5768eec08a3eb2a39641934dff91cbe63b022b84209fc75f8f8e329d831db6
MD5 937641ef050c99e17e0d2e9d11d7bd81
BLAKE2b-256 15a99e75c364534b11fb09537654097e66e99752a09220817807423527426734

See more details on using hashes here.

File details

Details for the file pyams_auth_apikey-2.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyams_auth_apikey-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43bfff3562edd8e92392a27acfa5aba9501ea7f6c7e7399956fa71baaec16bd6
MD5 6ae8ede0ee20c781cb84ce4fc5da9c8d
BLAKE2b-256 b2f60db41f8ee3ce0d9b2aa1f3e38adf9e2c3ed75a34a93cd5222471806ea2ad

See more details on using hashes here.

Supported by

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