refactor: ai接口token header修改

11111
winter 8 months ago
parent 2698f759a4
commit 5caf6de0ec

@ -31,7 +31,7 @@ public class ApiAuthTokenFilter extends OncePerRequestFilter {
SecurityContext context = SecurityContextHolder.getContext(); SecurityContext context = SecurityContextHolder.getContext();
// 进入此过滤器说明 OIDC 认证成功,则验证 authToken // 进入此过滤器说明 OIDC 认证成功,则验证 authToken
// 验证 authToken 合法 // 验证 authToken 合法
String token = request.getHeader("X-Auth-AuthToken"); String token = request.getHeader("X-Auth-Authtoken");
if (StringUtils.isBlank(token)) { if (StringUtils.isBlank(token)) {
filterChain.doFilter(request, response); filterChain.doFilter(request, response);
return; return;

Loading…
Cancel
Save