#3609 closed (wontfix)
BasicAuthenticationMiddleware: Use Basic HTTP Authentication to log (django users) in
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
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 |
Description
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 http://code.djangoproject.com/wiki/GenericAuthorization 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 settings.py:
BASIC_WWW_AUTHENTICATION = True
WWW_AUTHENTICATION_REALM = "djangolures.com"
Attachments (1)
Change History (4)
by , 18 years ago
Attachment: | BasicAuthentication.diff added |
---|
comment:1 by , 18 years ago
Component: | Admin interface → Contrib apps |
---|
comment:2 by , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I think this isn't quite appropriate for direct inclusion in Django (but you might want to post it to http://djangosnippets.org/ in case anyone else finds it useful).
comment:3 by , 16 years ago
See #689 for handling of REMOTE_USER (HTTP Basic Auth done by webserver)
The component-selectbox seems to be missing a middleware option? I guess 'contrib apps' is more appropriate for the moment.