I’d like for InControl to be able to call webhooks for various events.
For example, There are a number of use cases for Captive Portals:
- For access mode “SMS”, I’d like InControl to call a webhook with the mac address and phone number entered, and interpret the HTTP result code. A 200 would indicate that its OK to send an auth code; a 403 would indicate that the number is blocked, etc.
- A similar webhook could be attached to an “Email” access mode, where InControl passes whatever data was gathered.
- The “Token” access mode could be adapted to allow a webhook to both provide and validate access tokens. This would eliminate the need to administer access tokens directly in InControl.
Beyond that, It would be useful for InControl to call a webhook on selected log events, or when a device is goes online/offline. I’m sure I could come up with many more use cases, but the Captive Portal ones are particularly compelling.