5 Replies Latest reply on Dec 15, 2010 5:32 AM by karin k

    How to plugin a custom authenticator (not using the global jboss-service.xml file)

    karin k Newbie

      Hi all

      I use JBoss 4.2.3 and would like to plugin my own authenticator.

      Unfortunately I'm not able to use jboss-service.xml of jbossweb-tomcat55.sar/META-INF.

      Nevertheless I would be able to use the jboss-web.xml file but somehow it does not work

      I have configured the following in the jboss-web.xml file of my WAR File

       

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
          "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
      <jboss-web>

       

      <security-domain>java:/jaas/passataxa</security-domain>
          <context-root>/acontextroot</context-root>
          <authenticators>
              <authenticator>
                    <key>SSOBASIC</key>
                <value>com.xxx.MysuperAuthenticator</value> 
              </authenticator>
           </authenticators>  
      </jboss-web>

       

      In my web.xml file I configured the following

       

      <login-config>
              <auth-method>SSOBASIC</auth-method>
              <realm-name>aRealm</realm-name>
          </login-config>

       

      this is the error I got

      20:03:52,018 ERROR [ContextConfig] Cannot configure an authenticator for method SSOBASIC
      20:03:52,018 ERROR [ContextConfig] Marking this application unavailable due to previous error(s)
      20:03:52,019 ERROR [StandardContext] Error getConfigured

       

      Any help ist welcome

      Thanks

      Karin