Spring security context in Graphql Kotlin #1300
              
                Unanswered
              
          
                  
                    
                      szaluzhskiy
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 7 replies
-
| Hi @szaluzhskiy, From my analysis, the reactive security methods were not working because the ReactorContext is dropped by the implementation of FunctionDataFetcher#runSuspendingFunction. This method does receive a context that is always EmptyCoroutineContext thus clearing the spring boot coroutines integration. This is my solution which seems to work. 
 
 
 With the above implementation I can eventually use spring pre/post methods on my graphql queries/mutations/subscriptions as below:  | 
Beta Was this translation helpful? Give feedback.
                  
                    7 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 team!
I'm trying to find some guides on how to integrate Spring security oauth2 in GraphQL-kotlin. At the moment there are few issues found - 692, 8 but they don't allow me to build the "full puzzle" on how to integrate reactive spring security to GraphQL
Beta Was this translation helpful? Give feedback.
All reactions