go-playground / webhooks

:fishing_pole_and_fish: Webhook receiver for GitHub, Bitbucket, GitLab, Gogs
MIT License
955 stars 237 forks source link

Add azure basic auth verification #191

Closed raulcabello closed 3 months ago

raulcabello commented 9 months ago

Unlike GitHub, GitLab or BitBucket there is no way of verifying Azure webhook requests.

Azure allows setting basic authentication for webhooks more info. This PR uses basic authentication to perform requests validation. Basic auth can be set when creating a Webhook with the New method just like it is done for the other git providers.

It doesn't perform any validation if the username and password are not provided, which means that it doesn't introduce a breaking change.

coveralls commented 9 months ago

Coverage Status

coverage: 88.889% (+0.1%) from 88.765% when pulling 3b5f78bd354ee00177c0c4ac49dfd9ca5b1dab90 on raulcabello:master into 53694f85d27d5446a0790b0408b6799ac9709b98 on go-playground:master.

robinlieb commented 3 months ago

@raulcabello Thanks!