-
1. Re: Easy way to secure all pages in an app?
pmuir Feb 22, 2007 10:49 AM (in response to lawrieg)<page view-id="/*" login-required="true" />
-
2. Re: Easy way to secure all pages in an app?
lawrieg Feb 22, 2007 11:15 AM (in response to lawrieg)Hi Pete,
Just tried this and can't seem to make it work - IE just hangs indefinitely and Firefox gives me the following message:The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
I tried setting <page login-required="false"> in login.page.xml but this didn't help.
Any thoughts?
Cheers,
Lawrie -
3. Re: Easy way to secure all pages in an app?
gavin.king Feb 22, 2007 11:34 AM (in response to lawrieg)Use a wildcard view idd.
-
4. Re: Easy way to secure all pages in an app?
gavin.king Feb 22, 2007 11:35 AM (in response to lawrieg)You also need < pages login-view-id="..." >.
And you need to be using current CVS. -
5. Re: Easy way to secure all pages in an app?
lawrieg Feb 22, 2007 2:35 PM (in response to lawrieg)I'm now using the latest CVS version, have ensured all the settings suggested above are correctly set, but I'm still getting the problem.
Seam appears to be trying (but failing) to redirect to:
http://localhost:8080/customerbuilder/login.seam?cid=1&clr=true
It seems perhaps that using a wildcard to set all pages to require login also then means you need to be logged in in order to get to the login page, and setting login-required="false" for login.xhtml (either in login.pages.xml or pages.xml) does not work.
Any thoughts? -
6. Re: Easy way to secure all pages in an app?
gavin.king Feb 22, 2007 3:08 PM (in response to lawrieg)Right, you are not supposed to set login-required on *, only on /secure/*.
But I guess I can account for your usecase by *not* requiring login on the login-view-id ;-) -
7. Re: Easy way to secure all pages in an app?
gavin.king Feb 22, 2007 3:21 PM (in response to lawrieg)Done in CVS. That should fix your prob.
-
8. Re: Easy way to secure all pages in an app?
lawrieg Feb 23, 2007 3:37 AM (in response to lawrieg)Many thanks Gavin - jobs a good'un!
Cheers,
Lawrie