Skip to content

This plugin for Paw assists you in generating the X-Twilio-Signature header by sorting the body/form data from your request and appending it to the request URL.

License

scottswezey/Paw-XTwilioSignatureData

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

XTwilioSignatureData (Version 0.0.3)

This extension for Paw assists you in generating the X-Twilio-Signature header by sorting the body/form data from your request and appending it to the request URL, as documented by Twilio.

To install

  1. Clone this project to your computer. You can retain git data for easy updates. https://github.com/scottswezey/Paw-XTwilioSignatureData
  2. Open Paw, then Preferences, then the Extensions tab.
  3. Click the button to "Open Extensions Directory" found near the bottom of the page.
  4. Drag the entire com.scottswezey.PawExtensions.XTwilioSignatureData folder into the Paw extensions folder.
  5. You may need to press the "Reload Installed Extensions" button in the Paw Extension Preferences.
  6. Utilize git to update the project, or periodically download a new copy of from GitHub.

To use this project

  1. In Paw, select the Headers tab in a request.
  2. Add a new header with the name X-Twilio-Signature.
  3. In the header value, choose HMAC-SHA1. The input will be X-Twilio-Signature-Data, the key should be your Twilio AuthToken or a subsitute used for testing webhooks. Be wary of using your actual Twilio production credentials.
  4. Leave Algorithm set to HMAC-SHA1 and Encoding set to Base64
  5. Ensure irrelevant fields are not included in the request. (Ex MessageServiceSid when not emulating a messaging service) Such fields would be used in the signature calculation and thus incorrectly emulate Twilio's actual webhooks.
  6. Preview the request to ensure the signature is added.

Relevant Twilio Docs

More help

Contributing

  • Issues, discussions, and pull requests are welcome on GitHub.
  • Please open a discussion or issue to discuss major changes. While contributions are generally welcome, it's best to ensure the change will be accepted into the project before investing much time.
  • This project is versioned using the SEMVER 2.0.0 rules.
  • Do not bump the version number.

Author

Scott Swezey (GitHub)

License

This project and all contributions are MIT licensed. See LICENSE for further details.

About

This plugin for Paw assists you in generating the X-Twilio-Signature header by sorting the body/form data from your request and appending it to the request URL.

Topics

Resources

License

Stars

Watchers

Forks