사용자 bean 에 ip 담기 변경

This commit is contained in:
2026-01-22 21:02:41 +09:00
parent db2c191dd6
commit 90ec4f2983
3 changed files with 1 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ public class CustomAuthenticationProvider implements AuthenticationProvider {
// front에서 전달한 사용자 ip 등록
HttpServletRequest req = (attr != null) ? attr.getRequest() : null;
String ip = (req != null) ? HeaderUtil.get(req, "kamco-user-ip") : null;
String ip = (req != null) ? HeaderUtil.get(req, "X-Forwarded-For") : null;
UsernamePasswordAuthenticationToken token =
new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());