Secure transmission using the event signature header
X-IMPRINT-HMAC-SIGNATURE
header.
X-IMPRINT-HMAC-SIGNATURE
header consists of two parts:
t
) – the time the request was sent, represented as milliseconds since January 1, 1970 (Unix epoch).
s
) – the cryptographic hash used to verify the request.
Extract the timestamp and signature
X-IMPRINT-HMAC-SIGNATURE
header at the comma (,
), which separates the timestamp and signature.
=
) to extract the respective values.
Construct the message to sign
.
), and the raw POST body as a string1723493048949
, the message to sign would be:Compute the expected signature
Compare signatures