BasicAuthenticationMiddleware: Use Basic HTTP Authentication to log (django users) in
|Reported by:||pterk@…||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is a patch against . 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"
Change History (4)
Changed 9 years ago by pterk@…
comment:1 Changed 9 years ago by anonymous
- Component changed from Admin interface to Contrib apps
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset