Making JSPWiki viewable only after login

Simon Huggard <[email protected]> Tue, 02 Oct 2007 12:53:28 +1000
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
Hi all. I'm using JSPWiki JSPWiki v2.4.103.

I'd like to make our Wiki viewable only after login.

I've commented out the following option in the jspwiki.policy file:

  grant signedBy "jspwiki",
   principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" {
   // permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
   "view";

However, it doesn't work.
Is there something I'm missing?

The application name in the jspwiki.properties is:
jspwiki.applicationName = Cataloguer's Wiki

So I've also created an entry in the jspwiki.policy file like this:

  grant signedBy "Cataloguer's Wiki"

but that doesn't work either.

We're using a different directory name for the wiki itself (it's under 
/webapps/catwiki/), so does this matter? And we're using 
userdatabase.xml under the /webapps/catwiki/WEB-INF/ directory for 
authentication.

Thanks,

Simon
-- 
_______________________________________
Simon Huggard
Systems Manager
Information Systems Department
Monash University Library
Monash University
Building 4, Monash University, Vic, Australia 3800
Phone: +61 3 9905 9138 Fax: + 61 3 9905 2610
Mobile: 0425 774 260 (International : +61 425 774 260)