1 Reply Latest reply on Apr 15, 2014 6:30 AM by Stephen Coy

    How to write a custom module to setUserPrincipal in Servlet request

    Harshi Gunarathna Newbie

      Hi experts,


      I have a requirement to set user principals by intercepting the Servlet request. I want to write this in such a way that when deployed web application uses JAAS, the getPricipals method needs to return previously set roles. Is there a way that I can write a Tomcat valve?

      How this can be done?


      Thanks in advance,