Pre Merge pull request !1 from mameng/master

This commit is contained in:
mameng 2020-05-28 12:10:38 +08:00 committed by Gitee
commit b1ca02461c
2 changed files with 7 additions and 1 deletions

View File

@ -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())

View File

@ -32,4 +32,6 @@ public class ClientSecure {
private final List<String> pathPatterns = new ArrayList<>();
private final List<String> skipUrl = new ArrayList<>();
}