如何在keycloak 4.6中排除网址?

时间:2018-11-29 04:53:30

标签: keycloak

keycloak:
  enabled: true
  public-client: true
  auth-server-url: http://localhost:8180/auth
  realm: realm
  resource: test
  securityConstraints:
  - authRoles:
    - test
    securityCollections:
    - name: test
      patterns:
      - /test/demo/*

此配置可以包含/ test / demo/*。

但是我想排除/ test / info并包括/ test / demo/*。

keycloak版本4.6.0.Final

1 个答案:

答案 0 :(得分:0)

keycloak:
  enabled: true
  public-client: true
  auth-server-url: http://localhost:8180/auth
  realm: realm
  resource: test
  securityConstraints:
  - authRoles:
    - test
    securityCollections:
    - name: test
      patterns:
      - /test/demo/*

keycloak:
  enabled: true
  public-client: true
  auth-server-url: http://localhost:8180/auth
  realm: realm
  resource: test
  securityConstraints:
  - authRoles:
    - test
    securityCollections:
    - name: test
      patterns:
      - /test/demo/*
  - authRoles:
    security-collections:
    - name: test
      patterns:
      - /test/demo/login
      - /test/demo/info

此配置可以排除/ test / demo / login和/ test / demo / info