add 插件静态资源-权限校验

master
jay 2024-05-13 14:14:45 +08:00
parent 310c6f0683
commit 82d7497e41
1 changed files with 3 additions and 0 deletions

View File

@ -69,11 +69,14 @@ public class SaTokenConfig implements WebMvcConfigurer {
List<String> swaggerUrls = List.of("/doc.html","/favicon.ico", "/webjars/**", "/resources/**"
, "/swagger-resources/**", "/swagger-ui.html/**");
List<String> pluginStatics = List.of("/static-plugin/**");
List loginUrls = List.of("/code", "/auth/tenant/list", "/auth/login", "/auth/logout","/iot-oss/**");
List<String> openApiUrls = List.of( "/openapi/v1/getToken");
List<String> excludeUrls = new ArrayList<>();
excludeUrls.addAll(loginUrls);
excludeUrls.addAll(pluginStatics);
excludeUrls.addAll(swaggerUrls);
excludeUrls.addAll(openApiUrls);