Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: verify signature from event webhook #1010

Merged
merged 6 commits into from
Jun 22, 2020
Merged

Commits on Jun 5, 2020

  1. feat: verify signature from event webhook

    When enabling the "Signed Event Webhook Requests" feature in Mail Settings, Twilio SendGrid will generate a private and public key pair using the Elliptic Curve Digital Signature Algorithm (ECDSA). Once that is successfully enabled, all new event posts will have two new headers: X-Twilio-Email-Event-Webhook-Signature and X-Twilio-Email-Event-Webhook-Timestamp, which can be used to validate your events.
    
    This SDK update will make it easier to verify signatures from signed event webhook requests by using the VerifySignature method. Pass in the public key, event payload, signature, and timestamp to validate. Note: You will need to convert your public key string to an elliptic public key object in order to use the VerifySignature method.
    Sam Harrison committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    0061686 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2020

  1. fix typos and cleanup

    Sam Harrison committed Jun 9, 2020
    Configuration menu
    Copy the full SHA
    3fcfeb5 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2020

  1. Merge branch 'master' into event-webhook

    childish-sambino authored Jun 16, 2020
    Configuration menu
    Copy the full SHA
    b85770e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into event-webhook

    childish-sambino authored Jun 16, 2020
    Configuration menu
    Copy the full SHA
    6bf44bc View commit details
    Browse the repository at this point in the history
  3. use a _valid_ bad signature for testing and drop the starkbank depend…

    …ency
    Sam Harrison committed Jun 16, 2020
    Configuration menu
    Copy the full SHA
    a3f59ff View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2020

  1. Merge branch 'master' into event-webhook

    childish-sambino authored Jun 22, 2020
    Configuration menu
    Copy the full SHA
    2f80132 View commit details
    Browse the repository at this point in the history