Sha256: aa98d7f4058beabc49740a0f52a4eff12c07917c6d5de7cec63d573fab477fa9
Contents?: true
Size: 507 Bytes
Versions: 14
Compression:
Stored size: 507 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
14 entries across 14 versions & 1 rubygems