Allow OAuth token authorization in webhooks

A couple years ago, I requested that webhooks support Basic authentication, at a minimum:

That was implemented, thank you again.

Our platform is making another upgrade, this time to enable OAuth authentication for our inbound webhooks. So, for example, when doing the webhook registration call:

curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer 8e600a4c-0027-4a9a-9bda-dc8d5c90350d" -d '{ "id":"79667c29-bd07-428d-9c29-23e18b023978", "externalId" : "external company ID", "url":"https://www.mydomain.com/another_webhook_new_url","eventTypes":[{"id":"1"},{"id":"2"}]}' https://api.rach.io/1/public/notification/webhook

You could add the OAuth token:

curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer 8e600a4c-0027-4a9a-9bda-dc8d5c90350d" -d '{ "id":"79667c29-bd07-428d-9c29-23e18b023978", "externalId" : "external company ID", "url":"https://www.mydomain.com/another_webhook_new_url","OAuth_bearer": XXX-XXX-XXX-XXX, "eventTypes":[{"id":"1"},{"id":"2"}]}' https://api.rach.io/1/public/notification/webhook

And then include that in the Auth header instead of the Basic auth that’s possible now.