Hello,

I was trying to follow
https://docs.djangoproject.com/en/1.8/howto/auth-remote-user/.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACczBUJAoqnEPY4z0yKqHN74fJOxCrrdhb_GtAQY7WTxc%2B3u%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to