2 Replies Latest reply on Oct 15, 2007 1:24 PM by anil.saldhana

    Customized LoginModule

    jdsignature

      Login security data needed: username, password, client IP Adress

      One custmized loginModule named XYZLoginModule has been created, here is what I am thinking:

      1. collect the userid, password, and client ip address via new PassiveCallbackHandler(userid, password, clientIP) ; Then pass the callbackhandler to LoginContext via new LoginContext(config, passiveCallbackHandler).

      2. per step 1, all the code will be handled in the application code, are there a way to have the JBOSS container handle this? can somebody point out a way on how to all of these, for instance, the sample login-config, jboss.xml, web.xml,

      thanks in advance for any clue?