Spring Cloud Gateway-安全路由排除

时间:2019-11-06 09:52:21

标签: spring-security-oauth2 spring-cloud-gateway

我正在将Spring-cloud-gateway与OAuth2结合使用,想知道是否存在使用yaml文件从安全性中排除路由的明智方法。到目前为止,我只是使用似乎运行良好的标准配置:

spring:
 cloud:
  gateway:
   routes:
    ...
    - id: <id>
      uri: <uri_with_lb>
      predicates:
       - Path=/api/public/...
      filters:
       - RewritePath=/api/public/... /public/... 
     # - TokenRelay=

但是我想将此路径/路由-api/public仅使用yaml文件公开-可能吗?

0 个答案:

没有答案