7 Replies Latest reply on Feb 13, 2007 6:12 PM by Gavin King

    configuring seam security

    Edem Morny Novice

      Hi,

      I'm using seam 1.1.5.GA. I've written my own class to authenticate my users and created a login page as per the example in the reference manual. However i have a few problems

      1. i have a main.xhtml page that i want to be accessed only after user is logged in, irrespective of their role. I've tried putting this in pages.xml

      <page view-id="/main.xhtml">
       <restrict/>
      </page>
      


      but the page is rendered without requiring any authentication.

      2. I don't know how to let seam security know what login page to use when authentication or authorization is required. I didn't see anything like it in the reference manual. Does it use the login-config in web.xml? If so what realm do i use?

      Any ideas welcome.