spatie / laravel-webhook-client

Receive webhooks in Laravel apps
https://freek.dev/1383-sending-and-receiving-webhooks-in-laravel-apps
MIT License
1k stars 147 forks source link

Change to Signature Validation #80

Closed olimortimer closed 3 years ago

olimortimer commented 3 years ago

Is there any way of altering the behaviour, to validate the signature differently?

The system I am integrating with creates the signature based on other data it sends back, so I need to validate against the password I send to them, and the airbillnumber they respond with;

This is calculated by adding the API Key used and the returned airbill number and hashing with MD5 signature = MD5 (password + airbillnumber)

Many thanks!

freekmurze commented 3 years ago

Here you go: https://github.com/spatie/laravel-webhook-client#creating-your-own-signature-validator