This package intends to provide full authentication / authorisation implementation for pyramid applications
Project description
pyramid_fullauth
Pyramid fullauth’s provides full user registration and management functionality for pyramid based web applications.
Package status
Package resources
Bug tracker: https://github.com/fizyk/pyramid_fullauth/issues
Documentation: http://pyramid-fullauth.readthedocs.org/
Installation
pip install pyramid_fullauth
or add pyramid_fullauth to your setup.py requirements.
Tests
You’ll need: packages defined in extra_requires[tests] to run tests, and then:
py.test
CHANGELOG
0.5.0
full python3 compatibility, since velruse migrated to py3 enabled requests-oauth
require velruse 1.1.1
run tests with sqlalchemy 1.0.x
small updates to conform with new linters versions embedded in pylama
0.4.1
fixed spelling for error message when user does not exist while trying to reset password.
require pyramid_basemodel at least version 0.3
0.4.0
python 3 compatibility (without oauth2 though)
cleared use of deprecated function pyramid.security.authenticated_userid in favour of pyramid.request.Request.authenticated_userid attribute.
make email fields case insensitive by using hybrid properties and CaseInsensitive comparator for model.
0.3.3
Fix issue where groupfined was returning empty list instead of None when user did not existed
0.3.2
catch all HTTPRedirect instead of just HTTPFound.
redirect with HTTPSeeOther instead of HTTPFound where applicable.
0.3.1
fixes MANIFEST.in to include yaml files - fixes #33.
0.3.0
Features
configure root factory if it hasn’t been already done
configure session factory only if it hasn’t been configured before
configure authorization policy only if it hasn’t been configured before
configure authentication policy only if it hasn’t been configured before
logged in user will be redirected always away from login page
views reorganisation - grouping by their function
replaced force_logout decorator with logout request method
small login view simplification
tests
rewritten tests to use pytest_pyramid
unified session with pyramid_basemodel’s
parametrize tests against two most recent pyramid versions and sqlalchemy
- turned on pylama to check code with linters:
pep8
pep257
pyflakes
mccabe
add pytest-dbfixtures, and run tests against postgresql and mysql as well
drop python 2.6 from tests
100% test coverage
0.2.3
weaker pyramid_yml requirements. Use registry['config'] instead of request.config which gets added only when explicitly including tzf.pyramid_yml package.
remove default_config with permission set for forbidden views. Throwning errors in pyramid 1.5a3
remove lazy=’load’ for relationship between AuthenticationProvider and User models as it was incorrect. Fixes error while using with sqlalchemy 0.9
0.2.2
copy all headers when login user. fixes issue, when headers set in AfterLogin event would not get passed
0.2.1
fixed csrf_check in password:reset:continue action
updated translation files
0.2.0
migrated tests to py.test
removed nose and lxml from test requirements
extracted UserEmailMixin from User model
validation exception improvements
set licensing to MIT License
fixed general error message for register_POST processing
activate action no longer gives 404 error after first use. Default is message about token being invalid or used [veronicazgirvaci]
- extending csrf_check predicate:
Can be turned on/off in settings.
Failed check rises 401 Unauthorised error
Backwards Incompatibilities
token variable is changed into csrf_token in fullatuh views
view no longer returns error messages on failed csrf token. Rises 401 Unauthorised error instead.
0.1.0
add localize to requirements. Ability to translate registerlogin communicates
ability to set custom session factory [with Veronica Zgirvaci help]
moved password validation to one place
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 Distributions
File details
Details for the file pyramid_fullauth-0.5.0.tar.gz
.
File metadata
- Download URL: pyramid_fullauth-0.5.0.tar.gz
- Upload date:
- Size: 49.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97184de737a6c412b91d82a5c9e77e7f8252e36cb316b05635cb2b2c435a0ced |
|
MD5 | 87deb188e182c2034ac32115ec5bd78a |
|
BLAKE2b-256 | 4b50c4bc372ae16b9104ada132b99aeecb98ed3b17c3a8b5142893cf7852cd1f |
File details
Details for the file pyramid_fullauth-0.5.0-py3.3.egg
.
File metadata
- Download URL: pyramid_fullauth-0.5.0-py3.3.egg
- Upload date:
- Size: 136.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 171d099ad5f817ac0c9276e391a34801ca4a3c3ce8b68cc7d2cb8aa98ff62e6c |
|
MD5 | 4837554b68d959e793f3a9b15b1554f3 |
|
BLAKE2b-256 | a325792e86159dabe5055d51f28e043bd5b60aa6f9078def714c636cc8b59ce6 |
File details
Details for the file pyramid_fullauth-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pyramid_fullauth-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 67.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c40b5a67eac34bed243cf172f689a23822ee46f2aa376bb50037cb75444d627 |
|
MD5 | 5a9d5036fc54be7aa992121eb1fa0809 |
|
BLAKE2b-256 | e961087d78f034588d67a5d31de183a97a44c338755be9995a5a9177abea4083 |
File details
Details for the file pyramid_fullauth-0.5.0-py2.7.egg
.
File metadata
- Download URL: pyramid_fullauth-0.5.0-py2.7.egg
- Upload date:
- Size: 132.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1135e143a736fd6f3dfedf315b1e541ba4ef86687076fe06dd5204a4cbf07ea5 |
|
MD5 | 824f97dafbe81b94ffdf906b73eac99a |
|
BLAKE2b-256 | 214526618c70c5e3229e69f2ff04e9a1fdedbd0b36eaa533bd9375caf6c36b8b |