07f694d2
webhooks: expand auth configuration
The purpose of this change is to enable internal webhooks to be configured in GQL webhook tables. A webhook subscription now includes the auth method field which is appropriate, which is limited to either OAUTH2 or INTERNAL. In the former case, the previous set of fields will be valid, and in the latter case, the NodeID field will be valid. This will allow us to register webhook subscriptions for internal use.
Drew DeVault <sir@cmpwn.com> — 2021-08-24 13:52:29 UTC
Commit 07f694d2fb31e0278aa2c8fb28c7b28adb5aac2a —
view raw patch
Parent(s):
590c9c42
| File | Status | + | − |
|---|---|---|---|
auth/middleware.go
|
M | +6 | -6 |
webhooks/config.go
|
M | +25 | -12 |
webhooks/context.go
|
M | +5 | -2 |
webhooks/queue.go
|
M | +15 | -11 |