Sha256: 3e4097c47f775b6dbcc16fbe5a5687a697eaa96cb92b4fee8b1a7e6eec22be07
Contents?: true
Size: 506 Bytes
Versions: 43
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true module ShopifyApp module WebhookVerification extend ActiveSupport::Concern include ShopifyApp::PayloadVerification included do skip_before_action :verify_authenticity_token, raise: false before_action :verify_request end private def verify_request data = request.raw_post return head(:unauthorized) unless hmac_valid?(data) end def shop_domain request.headers['HTTP_X_SHOPIFY_SHOP_DOMAIN'] end end end
Version data entries
43 entries across 43 versions & 2 rubygems