mirror of
https://gitee.com/smallc/blade-tool.git
synced 2026-07-11 10:59:43 +08:00
新增客户端认证skip-url
This commit is contained in:
parent
3e974afe30
commit
6763e905f8
|
|
@ -52,7 +52,11 @@ public class SecureConfiguration implements WebMvcConfigurer {
|
|||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
secureProperties.getClient().forEach(cs -> registry.addInterceptor(new ClientInterceptor(cs.getClientId())).addPathPatterns(cs.getPathPatterns()));
|
||||
secureProperties.getClient().forEach(cs -> registry.addInterceptor(
|
||||
new ClientInterceptor(cs.getClientId()))
|
||||
.addPathPatterns(cs.getPathPatterns())
|
||||
.excludePathPatterns(cs.getSkipUrl())
|
||||
);
|
||||
|
||||
if (secureRegistry.isEnabled()) {
|
||||
registry.addInterceptor(new SecureInterceptor())
|
||||
|
|
|
|||
|
|
@ -32,4 +32,6 @@ public class ClientSecure {
|
|||
|
||||
private final List<String> pathPatterns = new ArrayList<>();
|
||||
|
||||
private final List<String> skipUrl = new ArrayList<>();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user