GET /secretWWW-Authenticate: Basic realm="Codegram"
Client: basic-credentials = "Basic" SP basic-cookie
basic-cookie = base64encode(username+":"+password)
Wrong!
GET /secretWWW-Authenticate: Basic realm="Codegram"
X-AuthToken = "secret_long_string"
Still Wrong!
Hypothesis: If the channel can be trusted, then the underlying authentication mechanism shouldn't be something to worry about.
Wronger!
HTTP/1.0 200 OK
next-nonce = "another nonce"
Good!
Downsides
Client adds these fields:
Those are added in the response hash: MD5(HA1:nonce:cnonce:nc:HA2), nc, cnonce
With qop-value = auth-int it also includes a hash of the request body.
Awesome!
Downsides