To be more precise, I want to find the IP address of the client for the currently authenticated user. This info should be used later in my custom PermissionService.
The IP I can fetch using HttpServletRequest#getRemoteAddr(). But I have to relate this client IP info with the user. I thought that ticket and username (because the user can connect from different clients at the same time) could be the way to go.
Do you have an idea of how to fetch IP address for the currently authenticated user and use that info in the PermissionService later?