Authentication of SOAP requests without WS-Security uses your AWS identifiers and an HMAC-SHA1 signature. The request must include the parameters listed in the following table.
| Parameter | Description | |||
|---|---|---|---|---|
| Your AWS Access Key ID. | |||
| This must be a
| |||
| The HMAC-SHA1 signature calculated from the concatenation of the |
Calculating the request signature
1 | Concatenate the values of the |
2 | Calculate an RFC 2104-compliant HMAC-SHA1 Signature, using the string you created and your Secret Access Key as the key. For more information, go to http://www.faqs.org/rfcs/rfc2104.html. |
3 | Convert the resulting value to base64. |
4 | Pass the final value in the |
The following shows an example of how to provide the authentication information as elements in the SOAP header (using the namespace http://security.amazonaws.com/doc/2007-01-01/).
<?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Header xmlns:aws="http://security.amazonaws.com/doc/2007-01-01/"> <aws:AWSAccessKeyId>1D9FVRAYCP1VJS767E02EXAMPLE</aws:AWSAccessKeyId> <aws:Timestamp>2008-02-10T23:59:59Z</aws:Timestamp> <aws:Signature>SZf1CHmQnrZbsrC13hCZS061ywsEXAMPLE</aws:Signature> </soap:Header> ... </soap:Envelope>