安全

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。这应该可以通过上下文传播实现,该功能旨在使安全性和其他上下文信息在数据检索级别可用。spring-doc.cadn.net.cn

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