An auth policy for the Pyramid Web Framework with sane defaults that works with Michael Merickel’s absolutely fantastic pyramid_services. Provides an easy to use authorization policy that incorporates web security best practices.
Installation
Install from PyPI using pip or easy_install inside a virtual environment.
$ $VENV/bin/pip install pyramid_authsanity
Or install directly from source.
$ git clone https://github.com/usingnamespace/pyramid_authsanity.git $ cd pyramid_authsanity $ $VENV/bin/pip install -e .
Setup
Activate pyramid_authsanity by including it into your pyramid application.
config.include('pyramid_authsanity')
2.0.0 (2021-03-07)
Remove support for Python 2, 3.4, and 3.5
Updated to use new Pyramid 2.0 import locations, please use 1.1.0 if you want compatibility with lower versions of Pyramid.
1.1.0 (2017-11-29)
Add new Authorization header based authentication source
This provides out of the box support for “Bearer” like tokens.
1.0.0 (2017-05-19)
Remove Python 2.6 support
Fix a bug whereby the policy was storing a dict instead of a list in the source, which of course broke things subtly when actually using the policy.
Send empty cookie when forgetting the authentication for the cookie source
Release files for pyramid-authsanity 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyramid_authsanity-2.0.0.tar.gz | 21.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyramid_authsanity-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.6 kB
Release files / pyramid_authsanity-2.0.0.tar.gz
| Download URL | pyramid_authsanity-2.0.0.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cda2a20c70ba24812461268d0e14e78fe67ade75ca64b5a85d770c392a96838
|
|
BLAKE2b-256 checksum How to use checksums |
7b3e702bef65ee6ae0eba4438d1a7064beb5e27a3ed2ffbf3d13c721d170959f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
|
Release files / pyramid_authsanity-2.0.0-py3-none-any.whl
| Download URL | pyramid_authsanity-2.0.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d29751dacab4946f45643b4261adac8b69d96f0a020df208f0310d97451f773a
|
|
BLAKE2b-256 checksum How to use checksums |
2abb09007e89627a9d173ad0827af6c2aed69efad4f655a381c99e6f549d2871
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
|