#25030: The /admin/login/ should observe external authentication even when it
appears in POST
------------------------------+------------------------------------
Reporter: adelton | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Comment (by adelton):
I'd appreciate any guidance / preference for further approach. One
possibility is to be very explicit and turn POST to GET when the user is
already authenticated and thus do it outside of the admin application:
{{{
class InterceptionRemoteUserMiddleware(object):
def process_request(self, request):
if request.META["PATH_INFO"] == u'/admin/login/' and
hasattr(request, 'user') and request.user.is_authenticated():
request.method = "GET"
}}}
However, hardcoding the {{{/admin/login}}} certainly is not nice.
--
Ticket URL: <https://code.djangoproject.com/ticket/25030#comment:4>
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.3a0de8275c408e5ab7cb7875ebfb307e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.