fix(aiot): 摄像头查询接口加入认证白名单
问题:service调用 /api/ai/camera/get 接口时返回401未授权 根因:新添加的摄像头查询接口需要登录认证 修复:将 /api/ai/camera/get 加入认证白名单 - 允许service服务无需token即可查询摄像头信息 - 用于告警汇总页面获取摄像头中文名称 影响文件: - src/main/java/com/genersoft/iot/vmp/conf/security/WebSecurityConfig.java:105
This commit is contained in:
@@ -102,6 +102,7 @@ public class WebSecurityConfig {
|
||||
defaultExcludes.add("/api/jt1078/playback/download");
|
||||
defaultExcludes.add("/api/jt1078/snap");
|
||||
defaultExcludes.add("/api/ai/roi/snap");
|
||||
defaultExcludes.add("/api/ai/camera/get");
|
||||
|
||||
if (userSetting.getInterfaceAuthentication() && !userSetting.getInterfaceAuthenticationExcludes().isEmpty()) {
|
||||
defaultExcludes.addAll(userSetting.getInterfaceAuthenticationExcludes());
|
||||
|
||||
Reference in New Issue
Block a user