Integration with Spring Security #57
-
|
Hello, According to this page https://netflix.github.io/dgs/advanced/security/ there's some integration between DGS and Spring Security. Is it making sure the SecurityContextHolder is properly configured to be available in all the datafetchers and dataloaders despite having an async query and mutation strategy ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The Spring Security integration lets you use At Netflix we have an executor that is set up with thread local data, and for DGS we use this executor when creating CompletableFutures. You could possibly use a similar pattern, but it doesn't come out of the box with DGS. |
Beta Was this translation helpful? Give feedback.
The Spring Security integration lets you use
@Securedon data fetchers. It does not take care of SecurityContextHolder.At Netflix we have an executor that is set up with thread local data, and for DGS we use this executor when creating CompletableFutures. You could possibly use a similar pattern, but it doesn't come out of the box with DGS.