Spring SecurityContext and graphql-java #2333
Unanswered
eriklagerholm
asked this question in
Q&A
Replies: 1 comment 2 replies
-
If you're using those three libs, then why wouldn't you just use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! We're running a spring boot and graphql-java setup with the following frameworks:
We recently upgraded from graphql-java 13, tools 5.6 and servlet 9.2 to the above versions. As I understand it there is new async defaults for datafetchers and as such we have got issues with the Spring SecurityContext not being passed between threads. We have dataloaders from before the upgrade that are running with the context just fine, on their own executor that we previously set up to pass the context between threads. But the new async datafetchers we're struggling to get the Context passed consistently.
I wonder if anyone in the community has a similar setup to ours and got the async bit and context working properly? Or are most people running the
graphql-spring-boot-starter
that perhaps solves this out-the-box?We would be very thankful for any input on this topic!
Beta Was this translation helpful? Give feedback.
All reactions