solidusio / solidus_bolt

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Fix params used in verify_bolt_request #108

Closed Naokimi closed 2 years ago

Naokimi commented 2 years ago

When we created in BaseController in a previous commit we forgot that it called params[:webhook] to compute the signing secret, when in reality the params will be different based on the controller called. Therefore we are adding in this commit a private method to each controller that will be called instead.

At the same time, we've updated the specs to pass params that more accurately reflect actual params being passed.