Skip to content

Commit

Permalink
Merge branch 'develop' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
hajungIm committed Apr 5, 2024
2 parents 31f4057 + b469d01 commit 6bfc7f6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ private void processTokenAuthentication(HttpServletRequest request) {
SecurityContextHolder.getContext().setAuthentication(authentication);
return;
}
log.error("Invalid token for requestURI: {}, Access from IP: {}", request.getRequestURI(), request.getRemoteAddr());
String clientIp = request.getHeader("X-Forwarded-For");
if (clientIp == null) {
clientIp = request.getRemoteAddr();
}
log.error("Invalid token for requestURI: {}, Access from IP: {}", request.getRequestURI(), clientIp);
throw new CommonException(INVALID_TOKEN);
}

Expand Down

0 comments on commit 6bfc7f6

Please sign in to comment.