3 Replies Latest reply on Jul 13, 2004 5:12 AM by stueccles

    Security Jaas

    Ella Khalif Newbie

      I have a working JAAS-based J"EE application, the login works using the j_security_check. J want now to show loginException on the error.jsp. WiI don't know how. Help me

        • 1. Re: Security Jaas
          Pedro Nevado Newbie

          It is difficult to help you with as little information as you provide. Have a look at the relevant .xml descriptors involved .

          • 2. Re: Security Jaas
            Ella Khalif Newbie

            LoginModule works, but i don't know how to display LoginException on the error page.
            I use web.xml with:
            <login-config>
            <auth-method>FORM</auth-method>
            <realm-name>IPS Anmeldung</realm-name>
            <form-login-config>
            <form-login-page>/fc/login</form-login-page>
            <form-error-page>/fc/login?login_error=1</form-error-page>
            </form-login-config>
            </login-config>

            I use login-config.xml with
            <application-policy name = "other">

            <login-module code = "xxx.jaasmodules.MyLoginModule"
            flag = "required">
            <module-option name = "unauthenticatedIdentity">guest</module-option>
            </login-module>

            </application-policy>

            and of course ejb-jar.xml and jboss-web.xml for RoleConfiguration

            • 3. Re: Security Jaas
              stueccles Newbie

              It wont be possible to display the LoginException with the FORM authenticator.
              You will at least need to write a custom authenticator. Even then it will be very difficult.