05-13-2021 10:57 AM
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?
Solved! Go to Solution.
05-13-2021 02:33 PM
Cisco Meraki WebHooks do not support basic authentication. Just a shared secret. Here are some examples.
https://developer.cisco.com/meraki/webhooks/#!webhook-sample-alerts
05-13-2021 12:22 PM
Can you share what output you are getting ?
05-13-2021 01:54 PM
I misspoke. The test just says "fail" so I don't have any context into where or why it's failing. Is there a way to see what the response code/payload is?
05-13-2021 02:32 PM
@DevMan : can you check this postman collection
https://documenter.getpostman.com/view/897512/SVfRtnU7?version=latest
05-13-2021 02:33 PM
Cisco Meraki WebHooks do not support basic authentication. Just a shared secret. Here are some examples.
https://developer.cisco.com/meraki/webhooks/#!webhook-sample-alerts
05-27-2021 05:10 AM
custom headers are coming to a webhook near you...
Stay tuned for this Summer's hot updates 😉
05-27-2021 05:10 AM
@DexterLabora : that’s good news, thanks .. waiting
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide