#25164: The django.contrib.auth.views.login does not observe authentication via
RemoteUserMiddleware
------------------------------+--------------------------------------
Reporter: adelton | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by adelton):
If you say `django.contrib.auth.views` is not supposed to work out of box
with `RemoteUserMiddleware`, I'll certainly respect that.
However, similar to our discussion in
https://code.djangoproject.com/ticket/25029, if we actually want to make
`RemoteUserMiddleware` / `PersistentRemoteUserMiddleware` more useful and
more used, it'd be nice if `django.contrib.auth.views.login` it could
handle any `django.contrib.auth.middleware` that the admin setting up the
project decides to configure. The purpose of middlewares as I understand
it is to be easily pluggable from admin's point of view -- just add them
to `MIDDLEWARE_CLASSES` list and be done with it.
Yes, the admin certainly can write their own login view. But shouldn't we
strive to make the out-of-box experience as easy as possible, making
various bits work reasonably for various setups that are shipped with
Django. Of course, situation is different with third-party software but
`RemoteUserMiddleware` has been in the project since 2009.
--
Ticket URL: <https://code.djangoproject.com/ticket/25164#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.e8bb0c13e2453562c6780ecef2d7161b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.