安全性

The path to a Web GraphQL endpoint can be secured with HTTP URL security to ensure that only authenticated users can access it. This does not, however, differentiate among different GraphQL requests on such a shared endpoint on a single URL.spring-doc.cadn.net.cn

要应用更精细的安全控制,请在用于获取GraphQL响应特定部分的服务方法上添加Spring Security注解,例如@PreAuthorize@Secured。这应该可以因为Context Propagation而起作用,该特性旨在使安全性和其他上下文在数据获取级别可用。spring-doc.cadn.net.cn

此仓库的1.0.x分支包含 Spring MVCWebFlux 的示例。spring-doc.cadn.net.cn