Basic auth utilities for Django.
Project description
Basic auth utilities for Django.
Requires
Tested under…
Python
3.6
Django
1.8
1.9
1.10
1.11
Installation
pip install django-basicauth
Usage
from basicauth.decorators import basic_auth_required
@basic_auth_required
def myview(request):
...
or by a middleware.
MIDDLEWARE_CLASSES = (
'basicauth.middleware.BasicAuthMiddleware',
...
)
Settings
BASICAUTH_USERS (required): Dictionary including keys as username and values as passwords.
BASICAUTH_REALM: realm string, default is “Secure resource”.
Changes
0.2 (2016-03-31)
Added BasicAuthMiddleware https://github.com/hirokiky/django-basicauth/pull/3
0.1 (2015-04-20)
Initial
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
django-basicauth-0.2.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for django_basicauth-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb1b16aaa9d7023bf34c34efdf8d5851729d78d699b387549c1dfee3422593fe |
|
MD5 | 6315697f1885d88d291e1bf1edd37683 |
|
BLAKE2b-256 | 2366c941e234e2c516330612113ed814b5e014053493466bcb8e9093b5f512b0 |