
ALT This diagram depicts two methods for designing secure web API access: Token-based and HMAC authentication. The upper half illustrates token-based authentication with four steps: the client enters a password, receives a token from the Authentication Server, sends a request with the token to the Web Server, and then gets the resource. The lower half details HMAC authentication in seven steps: the client requests and receives an API key, generates an HMAC signature, sends a request with the signature, while the Web Server generates its own HMAC signature for comparison and, upon matching, releases the resource. A box shows the HMAC signature generation algorithm using attributes like the public app ID, request URI, HTTP method, content, timestamp, nonce, and the API key to produce the HMAC signature.

























