(or: how to make authenticated & authorized `P...
# prisma-whats-new
q
(or: how to make authenticated & authorized
POST
requests in the webhooks)
n
@qsys hey, you can embed a secret as a query parameter to your webhook url
that you verify in the mutation callback
we will simplify this process pretty soon 🙂
q
Nice... Looking forward to it 🙂 Any ETA?
n
none that I can share 😉
q
hey, you can embed a secret as a query parameter to your webhook url
Sure, but what if the endpoint doesn't support query parameters, but uses
Authorization
-header (which makes much more sense)? (Having a choice of which http method to use and setting custom headers is pretty important to me.)
OK... so I may need to setup additional steps, webtasks are probably the way to go, thx.
n
these are great suggestions and we're already working on an upgrade to how mutation callbacks work in general 🙂 here's a feature request that you can subscribe to to stay notified: https://github.com/graphcool/feature-requests/issues/118
👍 1