0 Replies Latest reply on Mar 28, 2008 5:08 AM by snon

    Jboss login and portlet login

    snon


      Hi,

      JBoss Portal 2.4.1
      JBoss 4.0.4

      I have a portal, with portlets containing webapps. I need to be able to use the login and password from the jboss portal login page in order to log into my other apps.
      That's why I'm trying to develop a servlet in order to store the username and password in the session while login in my portal. I found something on the wiki but I'm having a few problem with the portletlogin :
      http://wiki.jboss.org/wiki/Wiki.jsp?page=PortletLogin

      1) Why do we have 2 servlets ? (savelogin and autologin servlet)
      Can't we do both actions in one servlet ?


      2) How the connection between the autologin and savelogin servlet is done ?

      String autologinURL = req.getContextPath() + "/auth/";
      resp.sendRedirect(resp.encodeRedirectURL(autologinURL));

      There is no reference to autologin servlet...

      3) In the autologin servlet : where do we put the code ? In which method ?


      Thanks for the answers.