Class: Axn::Webhooks::Inbound::Challenge
- Inherits:
-
Object
- Object
- Axn::Webhooks::Inbound::Challenge
- Includes:
- Axn, VendorFacet
- Defined in:
- lib/axn/webhooks/inbound/challenge.rb
Overview
The GET-echo handshake (spec: "### 3. Challenge"). Computes the exact Response: 200 echo, 403 when a guard (e.g. Meta hub.verify_token) rejects, 400 when there's no challenge value — all quiet (no page). A resolver or guard that RAISES is a loud exception (reported, mapped to 500 by Endpoint#challenge_response) — never an unhandled crash. Exposes a typed Response.
Instance Method Summary collapse
Methods included from VendorFacet
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'lib/axn/webhooks/inbound/challenge.rb', line 20 def call expose response: build_response end |