Announcement Announcement Module
Collapse
No announcement yet.
[IP Authentification] Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [IP Authentification]

    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.

  • #2
    Any suggestions ?
    Thanks

    Comment


    • #3
      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();

      Comment


      • #4
        Thanks a lot, resolve everything !!

        Comment

        Working...
        X