0 Replies Latest reply on Oct 6, 2006 9:46 AM by rkiesi

    Showing a secured page when user is logged in

    rkiesi

      Hi everybody,

      We am working on a completly new portal.
      We use JBOSS AS 4.0.4 and JBOSS Portal 2.4.

      In the default-object.xml we define a couple of pages including one "Admin" page. This page is secured with a security-constraint (see code below).

      Via an self written login portlet we populate our user with principals and roles (eighter from LDAP Servers or a relational database).

      As we log in as admin and the user has the role "Admin" i hoped the page with the security-contraint would be display, but it is not!!

      Am I missing something? I read throug this forum, the wiki and the adminguide and did not find a solution for this problem.

      Some hint would be nice
      thx rkiesi

      Here the code form the default-object.xml

      <deployment>
       <if-exists>keep</if-exists>
       <parent-ref>default</parent-ref>
       <page>
       <page-name>Admin</page-name>
       <security-constraint>
       <policy-permission>
       <role-name>Admin</role-name>
       <action-name>viewrecursive</action-name>
       </policy-permission>
       </security-constraint>
       </page>
       </deployment>
      


      and the principals and roles of the user after login
      Principals for user admin: admin***Roles(members:Admin)***