Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement →
Sign In

sendgrid-ruby

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sendgrid-ruby - rubygems Package Compare versions

Comparing version
6.5.1
to
6.5.2
+6
-0
CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
[2021-10-18] Version 6.5.2
--------------------------
**Library - Docs**
- [PR #472](https://github.com/sendgrid/sendgrid-ruby/pull/472): improve signed webhook event validation docs. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
[2021-09-08] Version 6.5.1

@@ -5,0 +11,0 @@ --------------------------

+1
-1
module SendGrid
VERSION = '6.5.1'.freeze
VERSION = '6.5.2'.freeze
end

@@ -20,2 +20,3 @@ If you have an issue logging into your Twilio SendGrid account, please read this [document](https://sendgrid.com/docs/ui/account-and-settings/troubleshooting-login/). For any questions regarding login issues, please contact our [support team](https://support.sendgrid.com).

* [Viewing the Request Body](#viewing-the-request-body)
* [Verifying Event Webhooks](#signed-webhooks)

@@ -141,1 +142,12 @@ <a name="migrating"></a>

```
<a name="signed-webhooks"></a>
## Signed Webhook Verification
Twilio SendGrid's Event Webhook will notify a URL via HTTP POST with information about events that occur as your mail is processed. [This](https://docs.sendgrid.com/for-developers/tracking-events/getting-started-event-webhook-security-features) article covers all you need to know to secure the Event Webhook, allowing you to verify that incoming requests originate from Twilio SendGrid. The sendgrid-ruby library can help you verify these Signed Event Webhooks.
You can find the usage example [here](examples/helpers/eventwebhook/example.rb) and the tests [here](spec/sendgrid/helpers/eventwebhook/eventwebhook_spec.rb).
If you are still having trouble getting the validation to work, follow the following instructions:
- Be sure to use the *raw* payload for validation
- Be sure to include a trailing carriage return and newline in your payload
- In case of multi-event webhooks, make sure you include the trailing newline and carriage return after *each* event

Sorry, the diff of this file is too big to display