Closed
Description
Request Type
[Feature Request]
Problem Description
Add authentication capability in webhook. A new optional auth
setting is added in webhook endpoints:
notification {
webhook {
endpoints = [
{
name: local
url: "http://127.0.0.1:5000/webhook"
version: 0
wsConfig: {}
auth: {
type: XXX
}
]
}
}
Supported methods are:
- basic
"auth": { "type": "basic", "username": "foo", "password": "bar" }
- bearer
"auth": { "type": "bearer", "key": "foobar" }
- key
"auth": { "type": "bearer", "key": "foobar" }
- none (default)
"auth": { "type": "none" }