Generate Auth Headers
A valid request should contain the following headers:
is generated as follows:
Create the following string concatenated by hash signs:
Calculate a SHA1 hash on the resulting string.
Encode the resulting string in Base64 to create the final public key
For your convenience in using this UI sandbox area:
The first three fields above (private-key, X-WIZ-source and json-length) must be filled in by a user. The rest will be auto generated by the 'Generate Auth Headers' button.
For convenience, when a text box is active, the keyboard shortcut (control-l) will show how many characters that box contains. You can use this field to enter into the json-length field.
When a request does not send through json in the body, but purely a url parameter, the json-length field should be set to '0'. As this is still used in the concatinated string that will be hashed.
Clicking the 'Generate Auth Headers' button will generate the public key, populate it here and set the three required headers on any requests made on the page.