I have a rare bug where some clients (MS Office) suddenly try to do NTLM negotiation. This looks like a regular request, except that the body of a LOCK or PUT request is empty, and a header is added Authorization: Negotiate ....
My WebDAV server (based on WSGIDav) implements authentication using secret URL as well as cookies for subsequent requests. Therefore, I want to reject these negotiation requests, but without tripping up the client.
What is the correct response to these requests? Every documentation I've found is how to do negotiation under the assumption that I actually want to negotiate, but in my case, this is incorrect. The client is already authenticated via the secret URL and/or a cookie, thus no Authorization header is desired at all.
401or even a400, but to make Windows WebDAV work reasonably well you probably just want to ignore the header. Why not try both and see what happens?