Re: Making JSPWiki viewable only after login

Janne Jalkanen <[email protected]> Tue, 2 Oct 2007 20:42:45 +0900
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
Please note that to require login you must comment out both Asserted  
and Anonymous.  Asserted means that you have a cookie - Anonymous  
means essentially the first time user.

/Janne

On 2 Oct 2007, at 14:37, Christoph Sauer wrote:

> Try to view the page from a browser that does not remember you (by  
> cookie),
> you should be able to view the pages. The strange thing is that as  
> soon as
> you have logged in, JSPWiki 2.4 requires you to log in, even if you  
> set the
> policy to give view rights to everybody. If you entered a wrong login,
> JSPWiki will show you the rejected message, but if you continue,  
> you will be
> able to view the pages (like expected) This seems to be a bug.
>
> --Christoph
>
> 2007/10/2, Simon Huggard <[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)
>> _______________________________________________
>> This is the Jspwiki-users mailing list, in which we discuss the
>> stable release (even-numbered, 2.4.x, 2.6.x), and user-issues.
>> For development discussion, please join jspwiki-dev.
>> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>> http://www.jspwiki.org/JSPWikiMailingList
>>
> _______________________________________________
> This is the Jspwiki-users mailing list, in which we discuss the
> stable release (even-numbered, 2.4.x, 2.6.x), and user-issues.
> For development discussion, please join jspwiki-dev.
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
> http://www.jspwiki.org/JSPWikiMailingList