Digest authentication
HTTP Digest authentication (RFC 7616) is a challenge-response scheme. Instead of sending the password, Nouto sends a hash computed from the password, a server-provided nonce, and the request. Use it for servers that respond to an unauthenticated request with WWW-Authenticate: Digest.
Set up Digest auth
Section titled “Set up Digest auth”- Open a request and select the Auth tab.
- Select Digest from the Type dropdown.
- Enter the Username and Password.
Both fields resolve {{variable}} references at send time.
Digest handshake
Section titled “Digest handshake”Each time you click Send, Nouto runs the handshake:
- Nouto sends the request without credentials.
- The server responds with
401 Unauthorizedand aWWW-Authenticate: Digestheader that contains the realm, nonce, and the supportedqopand algorithm. - Nouto computes the response hash from your username and password, the challenge, and the request method and URI.
- Nouto sends the request again with an
Authorization: Digestheader that contains the hash.
The response panel shows the server’s response to the second request. If the first response isn’t a 401 with a Digest challenge, Nouto shows that response and doesn’t retry.
Every send makes two requests, so a Digest request takes one more round trip than a request with Basic auth.
Supported algorithms and qop
Section titled “Supported algorithms and qop”The server’s challenge selects the algorithm. Both the VS Code extension and the desktop app support:
| Algorithm | Notes |
|---|---|
MD5 |
Used when the challenge doesn’t name an algorithm |
SHA-256 |
Defined in RFC 7616 |
MD5-sess |
Session variant of MD5 |
SHA-256-sess |
Session variant of SHA-256 |
Nouto uses qop=auth when the challenge offers it, and the legacy calculation without qop when the challenge has no qop. Nouto doesn’t support qop=auth-int, which also hashes the request body.
