ruby on rails - authenticate_or_request_with_http_token with mailchimp webhooks -
i using mailchimp webhooks pings method in 1 of controllers of application. method protected using
before_action :restrict_access def restrict_access authenticate_or_request_with_http_token |token, options| token == crm::application.config.api_key end end this works when sending http_authorization=mytoken in header of request.
there no way me edit header of webhook include token. there no way add token url , have authenticate_or_request_with_http_token pick up?
thanks.
kind of disappointing, in docs suggest adding secret key param in webhook url provide. http://apidocs.mailchimp.com/webhooks/ potentially that, , add check method.
with shopify api webhooks, send specific header check, , in docs explain on how best it, think more correct.
Comments
Post a Comment