Skip to content

Exception handling in GraphQLContextFactory #1469

Answered by dariuszkuc
dhartung asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 👋
Generation of context happens before the GraphQL execution (link so the handler won't run as this logic is outside of graphql-java execution engine.

Personally I would parse the JWT token in a webfilter and return appropriate HTTP status if it is not valid.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dhartung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants