From 5caf6de0ec818377e4c18c943d875ce52fcc7977 Mon Sep 17 00:00:00 2001 From: winter <2436197699@qq.com> Date: Thu, 18 Apr 2024 16:33:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20ai=E6=8E=A5=E5=8F=A3token=20header?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/teammodel/security/filter/ApiAuthTokenFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/teammodel/security/filter/ApiAuthTokenFilter.java b/src/main/java/cn/teammodel/security/filter/ApiAuthTokenFilter.java index 292b0a9..41b27e0 100644 --- a/src/main/java/cn/teammodel/security/filter/ApiAuthTokenFilter.java +++ b/src/main/java/cn/teammodel/security/filter/ApiAuthTokenFilter.java @@ -31,7 +31,7 @@ public class ApiAuthTokenFilter extends OncePerRequestFilter { SecurityContext context = SecurityContextHolder.getContext(); // 进入此过滤器说明 OIDC 认证成功,则验证 authToken // 验证 authToken 合法 - String token = request.getHeader("X-Auth-AuthToken"); + String token = request.getHeader("X-Auth-Authtoken"); if (StringUtils.isBlank(token)) { filterChain.doFilter(request, response); return;