2 Replies Latest reply on Jul 19, 2011 7:57 AM by geziefer

    How to restrict pages to require login?

    geziefer

      Hello,


      I already did some projects with Seam 2.
      For securing pages to require login we used to have this in pages.xml:


      <page view-id="/portal/*" login-required="true">
        <navigation>
          <rule if="#{not identity.loggedIn}">
            <redirect view-id="/login.xhtml" />
          </rule>
        </navigation>
      </page>
      



      Now I'm trying to use plain WELD where possible in a new project and added Seam-Security to it.
      But I have difficulties to understand how things are to be handled now - is there a similar mechanism?


      And concerning authentication - are there no longer annotations like @UserPrincipal, @UserPassword, @UserRoles to use in an security:jpa-identity-store block?


      Thanks,
      Geziefer