Exception-based authentication helpers for django
Project description
exceptional_auth
The purpose of this package is to provide a more flexible/powerful replacement for Django's login_required
and permission_required
decorators (and provide some entirely new related functionality).
The idea is to create a standard set of exceptions which any code can raise (even reusable apps distributed on pypi), and leave the handling of these exceptions up to the site developer (via custom middleware).
We provide exceptional_auth.BaseMiddleware
, a Middleware base class which makes it easier to handle our exceptions. Site developers should write a custom middleware extending this class, and add to MIDDLEWARE
setting.
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
Built Distribution
File details
Details for the file exceptional_auth-0.0.0.tar.gz
.
File metadata
- Download URL: exceptional_auth-0.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae600cd5c2c6cfff9d8cf3fd0a70c5d1ea1612452e0475dd4ce7d69d2f8d60eb |
|
MD5 | dad4abd4adaad9cc81bc8cc6b4907413 |
|
BLAKE2b-256 | d3857f0cbf29470309192401a90db9b910e1254c0964723613d7a84fec432bcb |
File details
Details for the file exceptional_auth-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: exceptional_auth-0.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa90e8f42fab74032539f6475e74faf27c04ad339e96470442bccfa84399bec |
|
MD5 | c10706e076757e3cfa0056b62f8ba4fd |
|
BLAKE2b-256 | 401258189efb8ef10e752dc0a032748a3e51e1caffda08876083fb29a79aabd7 |