1 Reply Latest reply on Sep 10, 2010 10:53 AM by jaikiran pai

    custom authenticator with JBoss 5.1

    Erwan Lacoste Newbie

      Hi all,

       

      I am trying to implement a custom authenticator under JBoss 5.1. I've been through some post and documentation over the net, but none helped me through.

       

      My point is to override the FormAuthenticator by a CustomFormAuthenticator under a key CUSTOM. Writting the class is no problem, now, how to register it? Well, I have a weird behaviour. If I declare in web.xml the auth-method CUSTOM, it won't work.

      Now, I edited the server/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml file and added an entry in the authenticators property. When the server starts, DEBUG logs from tomcat deployer state that the Authenticator is correctly registered, but nevertheless it is not taken into acount. Moreover, when I try to override the FORM attribute, it is still the FormAuthenticator that is used, never my custom authenticator.

       

      Anybody has an idea on how it works?

       

      Thanks in advance