evendis / mandrill-rails

Webhook processing and event decoration to make using Mandrill with Rails just that much easier
MIT License
288 stars 36 forks source link

Fix for authentication errors when additional params are in the parameters hash. #16

Closed gspiers closed 10 years ago

gspiers commented 10 years ago

Use only the post parameters when calculating the signature for a request from Mandrill. Fix inspiration comes from issue on original repo (https://github.com/evendis/mandrill-rails/issues/11).

This fixes invalid signatures being calculated when additional params that rails adds are in the params hash (like controller, action, subdomain).