0 Replies Latest reply on Aug 26, 2002 8:37 AM by ayalewk

    JBoss 3.0 Security customer Login module

    ayalewk Newbie

      i have searched the forums and never found an answer on my problem. I have custom login module,
      which works with jboss 2.x fine now i want to upgrade to jboss 3.0 but i got exception.
      java.lang.SecurityException: Authentication exception, principal=null
      i think it occurs not in the client side. it happens while i call my EJB remote method from my
      web side (from jsp or Servlet). i don't know what is wrong please help.

      my configuration looks like this


      <application-policy name = "client-login">

      <login-module code = "org.jboss.security.ClientLoginModule"
      flag = "required">
      </login-module>

      </application-policy>
      <application-policy name = "other">

      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
      flag = "required" />

      </application-policy>

      <!--my login modules-->
      <application-policy name="firstModule">

      <login-module code="org.jboss.security.auth.spi.ProxyLoginModule"
      flag="required">
      <module-option name="moduleName">"com.myCompany.FirstModule"</module-option>
      <module-option name="optionName">optionValue</module-option>
      </login-module>

      </application-policy>

      <application-policy name="secondModule">

      <login-module code="org.jboss.security.auth.spi.ProxyLoginModule"
      flag="required">
      <module-option name="moduleName">com.myCompany.SecondModule</module-option>
      <module-option name="optionName">optionValue</module-option>
      </login-module>

      </application-policy>

      thank you