Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
return;
}
String path = request.getRequestURI();
logger.info("JwtUserIdValidationFilter invoked for path: {}", path);
String servletPath = request.getServletPath();
logger.info("JwtUserIdValidationFilter invoked for requestURI: {}, servletPath: {}", path, servletPath);

// Skip JWT validation for public endpoints
if (path.equals("/health") || path.equals("/version")) {
if (servletPath.equals("/health") || servletPath.equals("/version") ||
path.endsWith("/health") || path.endsWith("/version")) {
logger.info("Public endpoint accessed: {} - skipping JWT validation", path);
filterChain.doFilter(servletRequest, servletResponse);
return;
Expand Down
Loading