IAM authentication for AfterShip webhooks

AfterShip now supports AWS API gateway with IAM authentication as a webhook receiver.This allows developers to use IAM authentication as a more secure way to receive webhook requests from external parties.

Enable IAM authentication

  1. Get your IAM User Access Key and Secret Key
  2. Encode URL for any special character as shown in the example below

                         Original value Encoded value
     URL https://b64arexm06.execute-api.us-west-2.amazonaws.com/test https%3A%2F%2Fb64arexm06.execute-api.us-west-2.amazonaws.com%2Ftest
    Secret key kucyRAdqyFKQ0Em8oZrzttFWlnIpSctv+o7lDoco kucyRAdqyFKQ0Em8oZrzttFWlnIpSctv%2Bo7lDoco
  3. Assemble encoded values to match the format shown below
    https://webhooks.aftership.com/aftership/aws-api-gatway/v1?url=(AWS API Gateway URL)&access_key=(Access key ID)&secret_key=(Secret access key)
  4. Login to your AfterShip account 
  5. Add the constructed webhook URL here
  6. Save
Was this article helpful?
0 out of 0 found this helpful