Fix always getting the local IP address when IS server is fronted by LB - Monitor Users Login Sessions
@@ -628,7 +628,7 @@ public class DefaultAuthenticationRequestHandler implements AuthenticationReques
private void storeSessionMetaData(String sessionId, HttpServletRequest request)
throws UserSessionException {
String userAgent = request.getHeader(javax.ws.rs.core.HttpHeaders.USER_AGENT);
- String ip = request.getRemoteAddr();
+ String ip = IdentityUtil.getClientIpAddress(request);
String time = Long.toString(System.currentTimeMillis());
Map<String, String> metaDataMap = new HashMap<>();
