3 Replies Latest reply on Mar 14, 2004 5:43 PM by ahardy66

    Container idependent JAAS Login Module

    tradem

      Hi Folks,

      my current LoginModule extends JBossSSX in order to work properly.

      Is there a way to decouple it from JBossSX, eg. by using an J2EE Connector?

      I want to get a login moudle that's indepent form any Container, because I don't know which Container is forced by my employer in future.

      Bye & Thx
      Toby

        • 1. Re: Container idependent JAAS Login Module
          neutro

          How about using javax.security.auth.spi.LoginModule this should make it possible to be used in any server its the interface implemented by JBoss AbstractServerLoginModule.

          hth

          SVen

          • 2. Re: Container idependent JAAS Login Module
            starksm64

            Its not possible as the way JAAS is used to perform authentication/authorization is not defined by the J2EE specs. J2EE 1.4 introduces a new authorization contract, but still does not define how authentication using JAAS is performed.

            • 3. Re: Container idependent JAAS Login Module
              ahardy66

              Toby,
              just write different implementations of LoginModule for each container, e.g. JBossLoginModule, TomcatLoginModule, WebsphereLoginModule.

              Extract your login code into a seperate shared utils class.

              It makes no difference, since you have to configure each container's login setup with container-specific xml files anyway.

              Obviously it will be nice when there's a J2EE spec for it though.

              Adam