~bigbes/core-go

ref: bdb0f7e8ad77b331f7a0d3ec5a60733250095233 core-go/webhooks/config.go -rw-r--r-- 2.7 KiB
c3d11991 — Drew DeVault 1 year, 6 months ago
webhooks: fix filter for internal auth
d3f7b91a — Drew DeVault 1 year, 6 months ago
webhooks: implement internal webhook users

AUTH_INTERNAL requests previously could not register webhooks. This
commit adds the necessary changes to allow for this.
465a6f71 — Drew DeVault 1 year, 6 months ago
all: pass errors to panic, not strings

GraphQL's recovery middleware can't handle strings so it just logs a
very not useful <nil>
236879ae — Conrad Hoffmann 3 years ago
Run `go fmt`
d0bf1153 — Adnan Maolood 4 years ago
webhooks.FilterWebhooks: Filter by user_id
87de6649 — Adnan Maolood 4 years ago
webhooks: Add FilterWebhooks function
f44afb10 — Simon Ser 4 years ago
go fmt
07f694d2 — Drew DeVault 4 years ago
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.
86e1e934 — Drew DeVault 5 years ago
webhooks: panic on nested webhook auth case

This is not strictly speaking necessary since we have a panic which
immediately follows the switch, but it is cleaner.
8bd6005b — Drew DeVault 5 years ago
webhooks: initial prototype for GQL-native webhooks