Module: FlowChat::Meta::SignatureValidation

Includes:
GatewayIdentity
Included in:
MessagingGateway, Whatsapp::Gateway::CloudApi
Defined in:
lib/flow_chat/meta/signature_validation.rb

Overview

X-Hub-Signature-256 validation, shared by every Meta webhook gateway.

The including gateway must have @config responding to #app_secret and #skip_signature_validation, and must include FlowChat::Meta::GatewayIdentity

(directly or via another Meta

behavior module) to supply platform_label

and configuration_error_class.

What it adds over FlowChat::Meta::Signature is the gateway's share: the opt out, treating a missing secret as the developer's mistake rather than an answer, reading the body off a Rack request, and the logging. An application holding Meta's webhooks outside a gateway wants Signature.

Method Summary

Methods included from GatewayIdentity

#configuration_error_class, #log_tag, #platform, #platform_label