Configuration
Configure in the OFAuth Dashboard:- Set webhook endpoint URL (HTTPS required)
- Select events to subscribe to
- View delivery history
Event Types
Connection Events
| Event | Trigger |
|---|---|
connection.created | New connection established |
connection.updated | Connection details changed |
connection.expired | Connection lost/invalidated |
System Events
| Event | Trigger |
|---|---|
rules.updated | Dynamic rules changed |
Payload Format
All connection-related webhook events (connection.created, connection.updated, connection.expired) share the same payload structure:
connection.created
connection.updated
connection.expired
Delivery & Retries
- Retry policy: Exponential backoff, max 5 attempts
- Timeout: 10 seconds per request
- Ordering: In-order per connection ID
2xx within 10 seconds.
Signature Verification
Each request includesOFAuth-Signature header:
- Extract timestamp (
t) and signature (v1) - Reject if timestamp > 5 minutes old
- Compute HMAC-SHA256 of
{timestamp}.{raw_body}with signing secret - Compare using constant-time comparison
Implementation Checklist
- Parse
application/jsonbody - Verify signature before processing
- Route by
type - Return
2xxwithin 10 seconds - Be idempotent (store event IDs)
Troubleshooting
Delivery Failed
Delivery Failed
Ensure endpoint is reachable and responds
2xx within 10 seconds.Events Not Arriving
Events Not Arriving
Verify endpoint URL and event subscriptions in Dashboard.
Signature Failing
Signature Failing
Use raw request body (not parsed), verify signing secret matches.