| | |
| | | /** |
| | | * token过滤器 验证token有效性 |
| | | * |
| | | * @author ruoyi |
| | | * @author ard |
| | | */ |
| | | @Component |
| | | public class JwtAuthenticationTokenFilter extends OncePerRequestFilter |
| | |
| | | protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) |
| | | throws ServletException, IOException |
| | | { |
| | | // 2026-02-04 zwy 跳过对/minioTransfer/**路径的 Token 解析 |
| | | String requestURI = request.getRequestURI(); |
| | | // 代理接口直接放行,不解析JWT |
| | | if (requestURI.startsWith("/minioTransfer")) { |
| | | chain.doFilter(request, response); |
| | | return; |
| | | } |
| | | |
| | | LoginUser loginUser = tokenService.getLoginUser(request); |
| | | if (StringUtils.isNotNull(loginUser) && StringUtils.isNull(SecurityUtils.getAuthentication())) |
| | | { |