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.1.0.tar.gz
.
File metadata
- Download URL: exceptional_auth-0.1.0.tar.gz
- Upload date:
- Size: 2.7 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 | 714f8af7636bd51245e6dd52c6e9fc62fa9c7157aedd747801f85af1c09c74ea |
|
MD5 | 07eb692c6b5d756c989ac69bfb9b074f |
|
BLAKE2b-256 | 7a94f8c9889f308576b9e95fee5cfd1160a083c286bc246e297aee984a89253e |
File details
Details for the file exceptional_auth-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: exceptional_auth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 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 | 39ce9b060ee606f67ae3dcdd37c35959ff225592b52688323c5d0457f6d632cf |
|
MD5 | c33e0bfd1df6f0f00273d53c749cad2c |
|
BLAKE2b-256 | 0cf30029783fc9e14a72ef7150a8e6342fabb58ff2078847efff2ccb52a6a560 |