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
答案 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