Hello,
I need to implement an IP auth. In which part should I do it ?
Besides, after authentification, how sessions are managed (request/session scopes) ?
Thanks for any help.
Hello,
I need to implement an IP auth. In which part should I do it ?
Besides, after authentification, how sessions are managed (request/session scopes) ?
Thanks for any help.
Any suggestions ?
Thanks
I think you could implement your authentication logic as an endpoint interceptor. you could get the ip of the client via theTransportContext:
TransportContext context = TransportContextHolder.getTransportContext();
HttpServletConnection connection = (HttpServletConnection )context.getConnection();
HttpServletRequest request = connection.getHttpServletRequest();
String ipAddress = request.getRemoteAddr();
Thanks a lot, resolve everything !!