Files
spring-graphql/samples/webflux-security
Brian Clozel 02d6cb1c59 Refine GraphQL testing infrastructure
After the introduction of the `@GraphQlTest` annotation, this commit
adds further refinements to the testing infrastructure.

Now, `@GraphQlTest` is completely independent of any web framework and
contributes a `GraphQlTester` component.

`@SpringBootTest` integration tests with mock servers only require an
`@AutoConfigureWebGraphQlTest` to get a `WebGraphQlTester` component.

Closes gh-75
2021-10-27 21:16:03 +02:00
..
2021-10-27 21:16:03 +02:00
2021-07-07 09:02:51 +01:00

Spring Security for GraphQL HTTP Endpoint with WebFlux

  • 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.