Closed ProfXponent closed 2 weeks ago
Hi @ProfXponent, please check the following server flag or env var is configured.
--auth-hook-send-request-body
HASURA_GRAPHQL_AUTH_HOOK_SEND_REQUEST_BODY
.Configure them to true
.
Ref: https://hasura.io/docs/2.0/deployment/graphql-engine-flags/reference/#send-request-body-to-auth-hook
@rakeshkky thank you, I think this resolves the issue for me
Version Information
Server Version: v2.37.0
Environment
CE
What is the current behaviour?
When authenticating REST endpoint calls hasura does not sent the REST request body.
This causes problems with platforms like
stripe
where you need to verify thestripe
webhook request body with theirstripe-signature
header.Using hasura in the POST auth webhook configuration just passes a
null
request body to the auth webhook making it impossible to verify that validity of thestripe
webhook call.What is the expected behaviour?
That hasura would pass along the gql request body for the underlying REST endpoint as the documentation describes.
How to reproduce the issue?
headers
property and note thenull
value of therequest
property.Please provide any traces or logs that could help here.
Any possible solutions/workarounds you're aware of?
Writing a Go service to do this instead.