I'm attempting to send Meraki event data via Webhooks to a rest endpoint that requires authentication. There does not appear to be a way for me to add headers to my Webhook configurations via the UI so I am adding basic authentication in the Webhook URL. My Webhook URL Looks like this:
https://<user>:<password>@collector.test.com/meraki
However; Meraki does not seem to like this as it always fails when I run a test. I get 401 unauthorized's as it appear Meraki is stripping out or not forwarding the auth creds. I've verified that the creds and endpoint work by doing the following curl test:
curl -X POST https://<user>:<password>@collector.test.com/meraki \
-H 'Content-Type: application/json' \
-d '{"message":"test"}'
I'd prefer to use Bearer authentication but there doesn't be a way for me to add http headers to Webhooks.
What's the best way to accomplish this?