An auth policy for the Pyramid Web Framework with sane defaults.
Project description
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')
unreleased
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.
0.1.0a3
Remove Python 3.2 support
Fix failing tests using pyramid_services >= 0.4 by requiring at least pyramid_services 0.3 because it contains the find_service_factory function utilized by the test.
0.1.0a2
Bert was asleep at the keyboard, the fix below is now actually properly fixed by decoding to ascii, which is safe because it is base64.
0.1.0a1
Ticket value is now a string instead of binary, this way Python 3’s json.dumps() will be able to serialize the value sent to the sources remember function.
0.1.0a0
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyramid_authsanity-0.1.0a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 979bae87eb8fcb9111eeac44a60cc96d41c812b7aafbac475e712e56f947b872 |
|
MD5 | bae3e7ee920764363b98ac72d47b52fd |
|
BLAKE2b-256 | 581bcb49c0dd8891e7e49fe36fef7eb7fbe780cc442ff9b22249165f3477265c |
Hashes for pyramid_authsanity-0.1.0a4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a830591ec2f88ed0c80057f036f9d98ea1ff16238f1f4409adec0aad9a84860 |
|
MD5 | 8573a0cfe28c845d527d44a865b5f409 |
|
BLAKE2b-256 | 5c2c69dd762d3d9b1cbfa3db66748994402ea1c67af755d2bb6622fb5a99fe65 |