module ShopifyGraphql::WebhookVerification
Private Instance Methods
shop_domain()
click to toggle source
# File lib/shopify_graphql/controller_concerns/webhook_verification.rb, line 18 def shop_domain request.headers['HTTP_X_SHOPIFY_SHOP_DOMAIN'] end
verify_request()
click to toggle source
# File lib/shopify_graphql/controller_concerns/webhook_verification.rb, line 13 def verify_request data = request.raw_post return head(:unauthorized) unless hmac_valid?(data) end