2 Replies Latest reply on Jul 2, 2005 1:15 PM by dudoes

    how can i return the requesting page?

    dudoes

      Hello,Everyone:

      i made a custom LoginModule OF jaas on jboss.
      now, I have finished my LoginModule, configed web.xml and login-config.xml, and developed my XLoginServlet for it.

      i login system with xlogin.jsp and its form's action go to "XLoginServlet".

      i login system with username/not password.

      NOW, when i "http://localhost:9090/restricted/test.jsp", in XLoginServlet the request pass my LoginModule's check, lc.login() return true, but it can't automatically forward to "restricted/test.jsp" and display it, why?

      this is my Question, how can do it? i need your HELP!

      Thanks

      Waiting for you ........

        • 1. Re: how can i return the requesting page?
          starksm64

          This is not supported. The container has to be doing the authentication in order to allow for forwarding to work.

          • 2. Re: how can i return the requesting page?
            dudoes


            Ok, thanks CTO.

            But i have a suggestion:

            THE jboss MBean should/could automatically support custom varial CALLBACK according to j_username/J_password's "j_xyz" pattern, then developer can design its XyzCallBack for his CallBackHandle() and write its LoginForm and LoginModule, so "Automatically Forward" is not dream.

            ok?

            if my suggestion is useful, let me know.

            thank you.