Hallo du. Now supporting stale. TODO Test this. FIXME There seems to be a problem if I log in directly with the right credentials. Is Authentication-Info wrong?
There is still this bug... The client doesn't terminate after receiving authentication-info header. And why/when does it increment nc <nonce-count>?
Seems to work. Now cleaning up code. TODO nc, save hashes instead of passwords.
Enabled add_nonce_once for testing. TODO Do not request authentication for public area...
Handle optional and mandatory fields separately (set to empty sting, error_occurred etc..