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

Hmac validation bank webhooks #302

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

gcatanese
Copy link
Contributor

Summary

The library provides only support for validating webhook payloads that include the HMAC signature in the request body AdditionalData (i.e. standard webhooks).
This PR adds the method is_valid_hmac_payload to validate the webhook payloads that include the HMAC signature in the HTTP header (.i.e banking webhooks).

Tested scenarios

Added unit testing, tested with the Adyen Sample app

@gcatanese gcatanese requested a review from a team as a code owner April 2, 2024 11:39
Copy link

sonarqubecloud bot commented Apr 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@wboereboom wboereboom merged commit de2ca57 into main Apr 3, 2024
4 checks passed
@wboereboom wboereboom deleted the hmac-validation-bank-webhooks branch April 3, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants