1 Reply Latest reply on Jun 25, 2012 10:31 AM by crk_16

    Custom Form Based Authentication in Jboss 7.0.2

    crk_16

      We are using Jboss 3.2.6 and now we want to upgarde it to Jboss AS 7.0.2.

      In our application we have a class which extends "org.apache.catalina.authenticator.AuthenticatorBase" which is used for custom form based authentication and this was achieved by adding entry in catalina.jar\org\apache\catalina\startup\Authenticators.properties and

      * replacing the original FORM= line with

      * FORM=My_custom_class_name

       

      But now we want to upgrade jboss to 7.0.2. So how to use this class for custom form based authentication? Actually we want to support custom form based authentication, so how to achieve the same in Jboss 7.0.2? Which class I need to extend to have this functionality and where the jars will be located?

       

      Thanks in advance. Please help me as I am new to Jboss 7.0.2.

       

      Thanks,

        • 1. Re: Custom Form Based Authentication in Jboss 7.0.2
          crk_16

          I found the solution for this issue

          1. Add <valve> for custom authenticator class as below

          <valve>

          <class-name>your fully qualified class name</class-name>

          </valve>

          2. Now your custom authenticator should extend to org.jboss.security.negotiation.NegotiationAuthenticator instead of org.apache.catalina.authenticator.AuthenticatorBase

          3. Add MANIFEST.MF file in META-INF under this your web application and add below contents in it,

          Manifest-Version: 1.0

          Build-Jdk: 1.6.0_24

          Dependencies: <module dependancy>

          Thats it.. it should work on AS 7.0.2...