2 Replies Latest reply on Feb 11, 2008 4:39 PM by Jaspal Singh

    custom LoginModule integration with portal ("org.jboss.porta

    Michel Bieske Newbie


      This question is about integrating a custom LoginModule in the portal.

      I implemented a custom LoginModule (extending AbstractServerLoginModule) and deployed it as a .sar in the deploy directory. I changed the security-domain of the portal app by editing jboss-portal.sar/jboss-server.war/WEB-INF/jboss-web.xml in order to user. Finally I've added security-constraints on a portal and pages object with custom roles.

      With this configuration I'm able to logon on my portal using my custom LoginModule (I can see pages and portlets which the user logged in is granted for) but something goes wrong because "Login" is still displayed in the top right corner of the page : I should see something "Logged in as : user1" ... "Logout". It seems that the "org.jboss.portal.header.USER" attribute is not set in the request object so jboss-portal.sar/portal-core.war/WEB-INF/jsp/header/header.jsp displays the "Login" link and not the user welcome informations.

      Did I miss something? What should I do to integrate my custom LoginModule with the jboss portal application?

      Thank you for your answers