What
This is a decorator for a django view that will request Basic Authentication. This is a copy of https://djangosnippets.org/snippets/243/
Why
There are serveral reasons for this Package:
I wanted Basic Authentication for just a couple of views. So the RemoteUserAuthBackend was no option. Also I did not want to configure the webserver to do Basic Authentication.
As you can read in the comments of https://djangosnippets.org/snippets/243/ there are some bugs in it - so I wanted to have them fixed - but also documented that they were fixed and in the end provide a fixed version of it
Also I just want to install it via pip
How to use
Apache
Add this to your apache config to tell apache to pass the Authorication Headers to your application:
WSGIPassAuthorization On
Metadata
Release files for django-basic-authentication-decorator 0.9
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-basic-authentication-decorator-0.9.tar.gz | 2.6 kB | Without provenance | Details for django-basic-authentication-decorator-0.9.tar.gz |
Release files / django-basic-authentication-decorator-0.9.tar.gz
| Download URL | django-basic-authentication-decorator-0.9.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deb7fdb033f46ddf0df5cb039eb365127c13ca076684dc2380f8c5be025a998d
|
|
BLAKE2b-256 checksum How to use checksums |
5b1bb754b5ceb34e79b4c91700a208be69ae499f11e09522c1905d138edc7e0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-basic-authentication-decorator 0.9
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.