-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RUBY-3375] Configure Govpay callback endpoint to authenticate both f…
…ront and back office accounts - Use ENV variable WCRS_GOVPAY_BACK_OFFICE_CALLBACK_WEBHOOK_SIGNING_SECRET for storing back office signing secret - Updated `GovpayPaymentWebhookSignatureService` to generate and verify signatures for both front office and back office accounts. - Now returns a hash with both `front_office` and `back_office` signatures. - Updated error handling to remove `signature` from the Airbrake notification parameters as it did not exist and would not during error - Modified `ValidateGovpayPaymentWebhookBodyService` to validate against both front office and back office signatures. - Updated specs for `GovpayPaymentWebhookSignatureService`: - Updated specs for `ValidateGovpayPaymentWebhookBodyService`:
- Loading branch information
Showing
4 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters