Skip to main content
The HTTP and HTTPS ingress supports HTTP SCRAM authentication (RFC 7804) with SCRAM-SHA-256 (RFC 5802, RFC 7677). The password never crosses the network, and your client verifies the server’s signature.

Before you start

Reveal the Producer credential for HTTPS or HTTP on the topic card and set:

The exchange

Send the same JSON body in both requests.
1

Client-first request

POST with Authorization: SCRAM-SHA-256 data=<base64("n,,n=<username>,r=<client-nonce>")>.Expect 401 and WWW-Authenticate: SCRAM-SHA-256 sid=<sid>, data=<base64 server-first>.
2

Client-final request

Compute the client-final message (c=biws,r=<server-nonce>,p=<proof>) and POST with Authorization: SCRAM-SHA-256 sid=<sid>,data=<base64 client-final>.Expect 202 and Authentication-Info: sid=<sid>,data=<base64 "v=<server-signature>">.
3

Verify the server

Compare the server signature with the one you compute. Reject the response if they differ.

Reference implementation (Node.js 18+)

publish.mjs
Call it with any JSON value:
After you rotate the producer credential, the old password stops working. Update LINK4SYNC_PASSWORD.