add 插件静态资源-权限校验
parent
310c6f0683
commit
82d7497e41
|
@ -69,11 +69,14 @@ public class SaTokenConfig implements WebMvcConfigurer {
|
||||||
List<String> swaggerUrls = List.of("/doc.html","/favicon.ico", "/webjars/**", "/resources/**"
|
List<String> swaggerUrls = List.of("/doc.html","/favicon.ico", "/webjars/**", "/resources/**"
|
||||||
, "/swagger-resources/**", "/swagger-ui.html/**");
|
, "/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 loginUrls = List.of("/code", "/auth/tenant/list", "/auth/login", "/auth/logout","/iot-oss/**");
|
||||||
List<String> openApiUrls = List.of( "/openapi/v1/getToken");
|
List<String> openApiUrls = List.of( "/openapi/v1/getToken");
|
||||||
|
|
||||||
List<String> excludeUrls = new ArrayList<>();
|
List<String> excludeUrls = new ArrayList<>();
|
||||||
excludeUrls.addAll(loginUrls);
|
excludeUrls.addAll(loginUrls);
|
||||||
|
excludeUrls.addAll(pluginStatics);
|
||||||
excludeUrls.addAll(swaggerUrls);
|
excludeUrls.addAll(swaggerUrls);
|
||||||
excludeUrls.addAll(openApiUrls);
|
excludeUrls.addAll(openApiUrls);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue