Updating the GraphQL schema for meta.sr.ht to introduce fine-grained access controls for clients and webhooks:

paste.sr.ht/~sircmpwn/1f43f654

Feedback desired.

One novel advantage of the webhook approach I've used here is that the client registering the webhook can specify an arbitrary GraphQL query which is executed to build the webhook request body. This means that you can configure the webhook payload to include any additional information you'll need, which will save you from having to make any additional API requests to finish processing the webhook.

Follow

@sir will these be exposed as url endpoints?

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml