Opened 16 years ago

Closed 16 years ago

#10857 closed (wontfix)

redirect on existing auth in django.contrib.auth.views.login

Reported by: radez Owned by: nobody
Component: contrib.auth Version: 1.0
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

We're using the new REMOTE_USER stuff with kerb ticket forwarding. We've implemented this patch to not show the login page when auth exists, such as the case where REMOTE_USER has succeeded. Seems it would be logical to impliment even if REMOTE_USER was not used at the auth backend.

Attachments (1)

redirect_on_exiting_auth.diff (1.3 KB ) - added by radez 16 years ago.
redirect on existing auth in login view

Download all attachments as: .zip

Change History (2)

by radez, 16 years ago

redirect on existing auth in login view

comment:1 by Chris Beaven, 16 years ago

Resolution: wontfix
Status: newclosed

This changes the behavior of the login view for everyone. Developers may be relying on being able to view the login page, even if they are already logged in.

Sounds like you should be wrapping the login view in your own view which redirects if they are already logged in (and as an aside, the patch should have been doing return HttpResponseRedirect(redirect_to)).

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