1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Bring in all of aws-sdk-sns if using Amazon ingress

Requiring _just_ the `Aws::SNS::MessageVerifier` does not work as it
references other classes in the AWS SDK that are not in this one class.

Bringing in the entire SNS SDK verifies the authenticity correctly.
This commit is contained in:
Rob Zolkos 2019-01-09 15:46:38 -05:00
parent ff807f823b
commit fb5c07525f

View file

@ -37,7 +37,7 @@ module ActionMailbox
def self.prepare
self.verifier ||= begin
require "aws-sdk-sns/message_verifier"
require "aws-sdk-sns"
Aws::SNS::MessageVerifier.new
end
end