From bf24b8a7e594db7ccf53472b53bf367bae42e968 Mon Sep 17 00:00:00 2001 From: weihongyang <1075331873@qq.com> Date: Mon, 15 Aug 2022 14:20:27 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20fix:=20=E4=BF=AE=E6=94=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cnbm/admin/filter/JwtAuthenticationTokenFilter.java | 1 - 1 file changed, 1 deletion(-) diff --git a/ym-admin/src/main/java/com/cnbm/admin/filter/JwtAuthenticationTokenFilter.java b/ym-admin/src/main/java/com/cnbm/admin/filter/JwtAuthenticationTokenFilter.java index 3730eb8..c5f77a1 100644 --- a/ym-admin/src/main/java/com/cnbm/admin/filter/JwtAuthenticationTokenFilter.java +++ b/ym-admin/src/main/java/com/cnbm/admin/filter/JwtAuthenticationTokenFilter.java @@ -55,7 +55,6 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter { throw new RuntimeException("用户未登录"); } //存入SecurityContextHolder - //TODO 获取权限信息封装到Authentication中 UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(loginUser,null,loginUser.getAuthorities()); SecurityContextHolder.getContext().setAuthentication(authenticationToken);