From RFC 2617
challenge = "Digest" digest-challenge
digest-challenge = 1#( realm | [ domain ] | nonce |
- opaque
- |[ stale ] | [ algorithm ] |
- qop-options
- | [auth-param] )
domain = "domain" "=" <"> URI ( 1*SP URI )
<"> URI = absoluteURI | abs_path nonce
= "nonce" "=" nonce-value nonce-value = quoted-string
opaque = "opaque" "=" quoted-string stale =
"stale" "=" ( "true" | "false" )
algorithm = "algorithm" "=" ( "MD5" |
"MD5-sess" | token ) qop-options = "qop" "="
<"> 1#qop-value <"> qop-value = "auth" |
"auth-int" | token
Example --
WWW-Authenticate: Digest realm="atlanta.com",
domain="sip:boxesbybob.com", qop="auth",
nonce="f84f1cec41e6cbe5aea9c8e88d359",
opaque="", stale=FALSE, algorithm=MD5
------
Example --
Proxy-Authenticate: Digest realm="atlanta.com",
domain="sip:ss1.carrier.com", qop="auth",
nonce="f84f1cec41e6cbe5aea9c8e88d359",
opaque="", stale=FALSE, algorithm=MD5