django-auth-wall
A very basic Basic Auth middleware that uses a username/password defined in your environment variable or settings.py to protect whole of your site. Does not use Django auth.
Handy for quickly securing an entire site during development, for example.
Note: Environment variables is preferred over settings.py.
Usage
# In settings.py:
MIDDLEWARE = [
'django_auth_wall.middleware.BasicAuthMiddleware',
# all other middleware here
]
# Optionally, set it here if not setting as environment variable
# Requires both variable to be set, else site won't be protected.
AUTH_WALL_USERNAME = 'user'
AUTH_WALL_PASSWORD = 'pass'
Installation
pip install django-auth-wall
Warning
Please make sure that you use SSL/TLS (HTTPS) to encrypt the connection between the client and the server, when using basic access authentication. In basic access authentication username and password are sent in cleartext, and if SSL/TLS is not used, the credentials could be easily intercepted.
Compatibility
Django 1.5+
Licence
MIT
Metadata
Release files for django-auth-wall 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-auth-wall-0.3.0.tar.gz | 3.6 kB | Without provenance | Details for django-auth-wall-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_auth_wall-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_auth_wall-0.3.0-py2.py3-none-any.whl |
Total release size: 7.4 kB
Release files / django-auth-wall-0.3.0.tar.gz
| Download URL | django-auth-wall-0.3.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6730e0457afd238a1e5a995a11cd153457db6d39da6cc61c5c539104c2ca23e
|
|
BLAKE2b-256 checksum How to use checksums |
3eb49536255f2d0861f9d8132f276c330d8664cddce2bfb9810aadb71f0bfa65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.11
|
Release files / django_auth_wall-0.3.0-py2.py3-none-any.whl
| Download URL | django_auth_wall-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a957bea1b0ea75ad4b11762ed12b6d80f489a7dadad57dd0b6bea5e0f5fbdd01
|
|
BLAKE2b-256 checksum How to use checksums |
a8ad9f064025ace619e7d1e94a4646cf69a185c9986d8a5f2bb73db8e3f2dc8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.11
|
Security for django-auth-wall 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.