Skip to main content

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

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)

Source distribution for django-basic-authentication-decorator 0.9
File Size Uploaded
django-basic-authentication-decorator-0.9.tar.gz 2.6 kB Details

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

Release history Release notifications | RSS feed

This release

0.9 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page