[jboss-user] [JBoss Portal] - Re: Dashboard configuration - drag and drop

sambit_dixit do-not-reply at jboss.com
Fri Feb 20 12:40:21 EST 2009


Hi,
   By design, Jboss Portal can be accessed by any user where as dashboard are user specific. That is why you can when accessing portal you can access, http://abc/portal/portal/yourportalname where as for dashboard it is http://abc/portal/auth/dashboard.  In Portal-Server.war WEB-INF/web.xml, you might see entries to for the servlet mapping to auth, authsec. These are first level of FORM authentication which is handled through login.jsp. Then internally it checks if the same user under specific role has access to the dashboard or not. What you have achieved so far is authenticating the user against a specific LDAP or DB. Jboss internally maintains it set of roles and users in JBP tables. It needs to be validated against them as well to render the dashboard correctly. To achieve this you need to use the following modules exposed by Jboss. You can make a look up these services through JNDI. 
java:portal/UserProfileModule, java:portal/RoleModule,java:portal/MembershipModule,java:/TransactionManager. 

Make sure that you use transaction manager before using the UserProfile, Role or MemberShip modules. 

What you can do is write a filter and add the filter to web.xml of Portal-Server.war. Inside the filter, check if the user in the request is present in Jboss using UserProfile if not create it and assign to appropriate Role using Membership module. 

Hope this helps. 

Regards
-Sambit  

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211912#4211912

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211912



More information about the jboss-user mailing list