2 Replies Latest reply on Jul 19, 2011 7:57 AM by Alexander Rühl

    How to restrict pages to require login?

    Alexander Rühl Newbie


      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">
          <rule if="#{not identity.loggedIn}">
            <redirect view-id="/login.xhtml" />

      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?