This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
GraphQL Kickstart & Spring Security #806
Unanswered
danielshiplett
asked this question in
Q&A
Replies: 1 comment
-
You can see here an example of secure WebSocket based on Kickstart Spring Boot & Spring Security. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an application that has been using Kickstart Spring Boot & Spring Security successfully with query and mutation resolvers for quite a while. We are on Kickstart 12.0.0 and the latest Spring Boot (2.6.6). We use Spring's OAuth2 support for our authentication and authorization.
Just the other day, we started using subscriptions. Our WebSockets are functioning just fine. However, we aren't getting the user's security context in the subscription handler. The context's authentication object is null.
We didn't do anything specifically for the queries or mutations to get it hooked into Spring Security (that I'm aware of). It just worked. I can't find any documented information on Kickstart about wiring in Spring Security or why the WebSocket servlet would be different.
Any pointers in getting WebSocket's to have the user's security context would be great!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions