lib/mandrill/web_hook/processor.rb in mandrill-rails-1.0.1 vs lib/mandrill/web_hook/processor.rb in mandrill-rails-1.0.2
- old
+ new
@@ -50,10 +50,10 @@
end
# Method described in docs: http://help.mandrill.com/entries/23704122-Authenticating-webhook-requests
def generate_signature(webhook_key, original_url, params)
signed_data = original_url.dup
- params.except(:action, :controller).keys.sort.each do |key|
+ params.keys.sort.each do |key|
signed_data << key
signed_data << params[key]
end
Base64.encode64("#{OpenSSL::HMAC.digest('sha1', webhook_key, signed_data)}").strip
end