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.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.0.tar.gz (19.3 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.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyams_auth_apikey-2.1.0.tar.gz
  • Upload date:
  • Size: 19.3 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.0.tar.gz
Algorithm Hash digest
SHA256 3c8af339add8cfb9e95966d4818b8507f81c9f9a1eaa2ebdea188c2dc93159c1
MD5 6516f0957f00054050a6b1365793e0fb
BLAKE2b-256 67744d79e1d933ca82d3bc3983030033c8853711ece9a63e9ad87177cf955849

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyams_auth_apikey-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bed2432f4aa16cfb26ba8d9f8ae52231918bc263d717768e8ad0ff27a5239d9
MD5 a7d3730ba07c8c85530d95077ec080c7
BLAKE2b-256 943dcebc0b02e12b73c8578823647f7e87acbef0d83fc9374851651e7de86532

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