From bd91276155934a0693af53a6a650387ebac3316e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 25 Nov 2023 20:44:36 +0800 Subject: [PATCH] =?UTF-8?q?websocket=EF=BC=9A=E9=87=8D=E6=96=B0=E5=B0=81?= =?UTF-8?q?=E8=A3=85=20websocket=20=E7=BB=84=E4=BB=B6=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20token=20=E8=AE=A4=E8=AF=81=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20WebSocketMessageListener=20=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E5=A4=84=E7=90=86=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/core/filter/TokenAuthenticationFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/filter/TokenAuthenticationFilter.java b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/filter/TokenAuthenticationFilter.java index 601415c00..544082d05 100644 --- a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/filter/TokenAuthenticationFilter.java +++ b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/filter/TokenAuthenticationFilter.java @@ -76,7 +76,7 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter { } // 用户类型不匹配,无权限 // 注意:只有 /admin-api/* 和 /app-api/* 有 userType,才需要比对用户类型 - // TODO 芋艿:ws 要不要区分开? + // 类似 WebSocket 的 /ws/* 连接地址,是不需要比对用户类型的 if (userType != null && ObjectUtil.notEqual(accessToken.getUserType(), userType)) { throw new AccessDeniedException("错误的用户类型");