0 Replies Latest reply on May 19, 2013 7:25 PM by Kohai Raul

    How to get Request object on customised Verifier

    Kohai Raul Newbie



      I've a custom Verifier that implements X509CertificateVerifier, which I use with BaseCertLoginModule for client-auth.


      My problem is that I need to get IP address and session-id into this Verifier. I tried with


              HttpServletRequest request = ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();


      ... but Request is always null


      Does anyone knows some way to get the Request object into an "standard" java class, in this case an X509CertificateVerifier, which is instantiated by BaseCertLoginModule?


      Best Regards