Securing Your HTTP API with Hawk
summary
Hawk is an HTTP authentication scheme that adds a message authentication code to sign requests and responses, with client-generated nonce + timestamp replay protection and a clock-skew sync so servers return their time when needed. Implementations exist for PHP, Node, Objective‑C and more; optional payload hashing and a pre-signed "buit" URL for GET/HEAD are supported. Keys must be available in plaintext for HMAC, host header and reverse‑proxy setups need care, and there is no formal spec—reference implementations serve as the de facto protocol.
AI-written summary · about
chapters (12)
- 0:00Introduction to Hawk
- 0:39Authentication challenges
- 3:35Securing requests and responses
- 6:58Alternative solutions
- 9:01Origins and implementations
- 12:26Authentication vs authorization
- 13:28Handling replay attacks
- 17:29The Hawk protocol mechanics
- 21:48Payload and response validation
- 25:01Single-use URI authorization
- 29:23Practical considerations
- 33:10Review and Q&A
