Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#3609 closed (wontfix)

BasicAuthenticationMiddleware: Use Basic HTTP Authentication to log (django users) in

Reported by: pterk@… Owned by: Adrian Holovaty
Component: Contrib apps Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


This is a patch against [4649]. It allows users to log in with Basic HTTP Authentication i.s.o. login forms using some simple middleware (entire patch is ~50 lines). I was unaware of so I'm not sure about its usefulness in the long run.

You can enable it by including 'django.contrib.auth.middleware.BasicAuthenticationMiddleware' in your MIDDLEWARE_CLASSES and then adding the following lines in your



Attachments (1)

BasicAuthentication.diff (4.6 KB) - added by pterk@… 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by pterk@…

Attachment: BasicAuthentication.diff added

comment:1 Changed 13 years ago by anonymous

Component: Admin interfaceContrib apps

The component-selectbox seems to be missing a middleware option? I guess 'contrib apps' is more appropriate for the moment.

comment:2 Changed 13 years ago by Jacob

Resolution: wontfix
Status: newclosed

I think this isn't quite appropriate for direct inclusion in Django (but you might want to post it to in case anyone else finds it useful).

comment:3 Changed 12 years ago by Thomas Güttler

See #689 for handling of REMOTE_USER (HTTP Basic Auth done by webserver)

Note: See TracTickets for help on using tickets.
Back to Top