1 Reply Latest reply on Jan 6, 2012 4:30 PM by magsy

    JBoss 4.2.3, retrieve HttpServletRequest from LoginModule

    magsy

      Hello,

       

      I've read that this should return the HttpServletRequest from a LoginModule:

       

      PolicyContext.getContext("javax.servlet.http.HttpServletRequest");

       

      However, it returns null. The PolicyContext has a number of different handlers/keys, but null is returned for each.

       

      Is there something I need to do to enable this feature so the PolicyContext is populated with a reference to the servlet request as opposed to null?

       

      Thanks

       

       

      John