On Mon, Sep 22, 2014 at 5:36 PM, Robbie Edwards <robbie.edwa...@gmail.com> wrote: > Hi, > > On my production server, I'm using REMOTE_USER to provide SSO for an > internal service. It works great on the production server. However, when > running 'runserver' on the development side, this variable is not set so > authentication in this manner doesn't work. Is there a way to config this > on the development side so I can develop as if it were in place? > > thanks
Add middleware on your dev site that sets the appropriate value for development, eg: class DevAddRemoteUserMiddleware(object): def process_request(self, request): request.META['REMOTE_USER'] = 'bob' Cheers Tom -- 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/CAFHbX1JbT%3Dbhaf4TMz%2BpbDfhwPG_wO-Z8-Fk1QWzBhAai-Dtgg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.