laravel / vonage-notification-channel

Vonage Notification Channel for Laravel.
https://laravel.com/docs/notifications#sms-notifications
MIT License
739 stars 50 forks source link

[3.x] feat: allow to customise the signature_method #78

Closed ankurk91 closed 1 year ago

ankurk91 commented 1 year ago

Hi,

Vonage allows us to customise the signature method (algo) through their dashboard (see screenshot), the default value is set to HMAC_SHA256.

This package was hard coded to use md5hash, this PR introduce a new config key signature_method which allows us to override the parameter. Web capture_30-4-2023_10815_dashboard nexmo com

Vonage uses this algorithm to sign the incoming webhooks as well as outgoing SMS via the SDK.

PS. I have kept backward compatibility, the default algo in sdk is still the same.