Test cases fail with authentication against REMOTE_USER with normal auth fallback

8 views
Skip to first unread message

Gergely Polonkai

unread,
Jun 10, 2015, 10:57:30 AM6/10/15
to django...@googlegroups.com
Hello,


If I enable django.contrib.auth.middleware.RemoteUserMiddleware, even if I set AUTHENTICATION_BACKEND to contain both RemoteUserBackend and ModelBackend, my test cases stop working. However, using the runserver environment, everything looks just fine regardless if I have REMOTE_USER set (and I get logged in successfully with REMOTE_USER set to the correct value).

Do I have to change anything in my tests for this to work?

For the record, I use django_webtest for most of my tests.

Best,
Gergely
Reply all
Reply to author
Forward
0 new messages