Skip to content

Auth Webhook "request" is null #10623

Discussion options

You must be logged in to vote

Unfortunately the request field is not set when using a restified endpoint. The auth hook is invoked before we actually process the request and look up the GraphQL stored for that rest endpoint, so it's not available to be sent to the auth hook. This is unlike normal GraphQL requests where the query text is in the incoming request body, so we've got it to send to the auth hook (hence why it's in the "request" property). For a restified endpoint, the graphql query text is not in the http request, so the "request" property ends up being null.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dereky565
Comment options

Answer selected by dereky565
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants