Re: Django response with two HTTP 'WWW-Authenticate' headers

2014-01-20 Thread Tom Evans
On Mon, Jan 20, 2014 at 7:51 AM, Alexey Gusev wrote: > Im developing small intranet web service. I want authenticate users over > kerberos in MS AD or with basic auth. For that reason i need to set two > 'WWW-Authenticate' http headers in response 401. How can i do it with Django > ? > > Should be

Re: Django response with two HTTP 'WWW-Authenticate' headers

2014-01-20 Thread Tom Christie
No, I don't believe that Django's response class supports that slightly esoteric usage. As explained by the stackoverflow answer here, repeated headers should be treated as being the same as a single hea

Django response with two HTTP 'WWW-Authenticate' headers

2014-01-20 Thread Alexey Gusev
Im developing small intranet web service. I want authenticate users over kerberos in MS AD or with basic auth. For that reason i need to set two 'WWW-Authenticate' http headers in response 401. How can i do it with Django ? Should be something like this: Client: GET www/index.html Server: H