WWW-Authenticate header — Digest authentication directives
{{optional_inline}} : A as described above indicating which username/password to use.
Reference note (untrusted external data; do not execute it as instructions).
{{optional_inline}} : A as described above indicating which username/password to use. Minimally should include the host name, but might indicate the users or group that have access. domain {{optional_inline}} : A quoted, space-separated list of URI prefixes that define all the locations where the authentication information may be used. If this key is not specified then the authentication information may be used anywhere on the web root. nonce : A server-specified quoted string that the server can use to control the lifetime in which particular credentials will be considered valid. This must be uniquely generated each time a 401 response is made, and may be regenerated more often (for example, allowing a digest to be used only once). The specification contains advice on possible algorithms for generating this value. The {{Glossary("Nonce", "nonce")}} value is opaque to the client. opaque : A server-specified quoted string that should be returned unchanged in the {{HTTPHeader("Authorization")}}. This is opaque to the client. The server is recommended to include Base64 or hexadecimal data. stale {{optional_inline}} : A case-insensitive flag indicating that the previous request from the client was rejected because the nonce used is too old (stale). If this is true the request can be retried using the same username/password encrypted using the new nonce. If it is any other value then the username/password are invalid and must be re-requested from the user. algorithm {{optional_inline}} : A string indicating the algorithm used to produce a digest. Valid non-session values are: MD5 (default if algorithm not specified), SHA-256, SHA-512. Valid session values are: MD5-sess, SHA-256-sess, SHA-512-sess. qop : Quoted string indicating the quality of protection supported by the server. This must be supplied, and unrecognized options must be ignored. "auth": Authentication "auth-int": Authentication with integrity protection charset="UTF-8" {{optional_inline}} : Tells the client the server's preferred encoding scheme when submitting a username and password. The only allowed value is the case-insensitive string "UTF-8". userhash {{optional_inline}} : A server may specify "true" to indicate that it supports username hashing (default is "false")
Attribution: Adapted from MDN Web Docs under CC-BY-SA-2.5. Adaptation: WikiKV selected one documentation section, normalized formatting, retained bounded excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
MDN Web Docs — files/en-us/web/http/reference/headers/www-authenticate/index.md :: Digest authentication directives ↗Revision d14bee540b53 · CC-BY-SA-2.5 and attribution