To provide credentials for HCP authentication, you use the Authorization request header with a value in the format shown below:
Authorization: HCP access-key:secret-key
In this format:
- access-key
- The Base64-encoded username for your user account.
- secret-key
- The MD5-hashed password for your user account.
Here’s an example of an Authorization header for HCP authentication:
Authorization: HCP bGdyZWVu:35dc4c4aa08fe0deab7e292e00eb8e97
With HCP authentication, the Authorization header for requesting anonymous access looks like this:
Authorization: HCP all_users: