3 Replies Latest reply on Apr 30, 2010 4:46 AM by Ondrej Medek

    Tomcat and JAAS cooperation with more parameters

    Ondrej Medek Apprentice

      Hi,

       

      I am using WebAuthentication.login(username, password), the configured JAAS login module gets two strings, that works fine. I have a principal in HttpServletRequest and EJB context properly set.

       

      But we have a project, where a user may have more identities - customer, employee, ... for the same username. (An emloyee may be a customer, too). So, I need to pass a parameter to the login module which would distinguish the chosen identity. Is there a way how to pass three parameters from web (Tomcat) to the LoginModule or how to pass some general Object?

       

      Thanks