Files
spring-graphql/samples/webmvc-http-security

Spring Security for GraphQL HTTP Endpoint with Spring MVC

  • Spring Security config secures GraphQL HTTP endpoint.
  • Fine-grained, method-level security on SalaryService.
  • AuthenticationException and AccessDeniedException resolved to GraphQL errors.
  • Tests with WebGraphQlTester and WebFlux without a server.