Closed fschmuck closed 3 years ago
Hello,
This is already available.
You can check the WebSecurityConfiguration class, in the graphql-gradle-plugin-samples-allGraphQLCases-server
module.
This module is both a demo, and a way to execute integration tests when building the project.
This class provide OAuth authorization, based on the org.springframework.security
package.
This page on the wiki give the associated information.
Etienne
Thank you for the quick reply. I figured out how to secure the connection to the websocket but when i send a GraphQL request my SecurityContext does not have a authorization set. So i cannot check on permission within my datafetchers. Is there also an example for this case?
Sorry, I can't help your that far.
Is there an easy way with this plugin to secure the websocket connection via spring-security?