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;