2009-08-28 18:18:30 +02:00
|
|
|
I'd like to have some pages of my wiki to be only viewable by some users.
|
|
|
|
|
2009-08-29 10:28:01 +02:00
|
|
|
I could use htaccess for that, but it would force the users to have
|
|
|
|
2 authentication mecanisms, so I'd prefer to use openID for that too.
|
2009-08-28 18:18:30 +02:00
|
|
|
|
2009-08-29 10:28:01 +02:00
|
|
|
* I'm thinking of adding a "show" parameter to the cgi script, thanks
|
|
|
|
to a plugin similar to goto.
|
|
|
|
* When called, it would check the credential using the session stuff
|
|
|
|
(that I don't understand yet).
|
|
|
|
* If not enough, it would serve a 403 error of course.
|
|
|
|
* If enough, it would read the file locally on the server side and
|
|
|
|
return this as a content.
|
2009-08-28 18:18:30 +02:00
|
|
|
|
2009-08-29 10:28:01 +02:00
|
|
|
Then, I'd have to generate the private page the regular way with ikiwiki,
|
|
|
|
and prevent apache from serving them with an appropriate and
|
|
|
|
much more maintainable htaccess file.
|
2009-08-28 18:18:30 +02:00
|
|
|
|
|
|
|
-- [[users/emptty]]
|
2009-08-28 21:00:58 +02:00
|
|
|
|
|
|
|
> While I'm sure a plugin could do this, it adds so much scalability cost
|
|
|
|
> and is so counter to ikiwiki's design.. Have you considered using the
|
|
|
|
> [[plugins/httpauth]] plugin to unify around htaccess auth? --[[Joey]]
|
2009-08-29 10:28:01 +02:00
|
|
|
|
|
|
|
>> I'm not speaking of rendering the pages on demand, but to serve them on demand.
|
|
|
|
>> They would still be compiled the regular way;
|
|
|
|
>> I'll have another look at [[plugins/httpauth]] but I really like the openID whole idea.
|
|
|
|
>> --[[emptty]]
|
2009-08-29 16:47:45 +02:00
|
|
|
|
|
|
|
>>> How about
|
|
|
|
>>> [mod_auth_openid](http://trac.butterfat.net/public/mod_auth_openid), then?
|
|
|
|
>>> A plugin for ikiwiki to serve its own pages is far afield from ikiwiki's roots,
|
|
|
|
>>> as Joey pointed out, but might be a neat option to have anyway -- for unifying
|
|
|
|
>>> authentication across views and edits, for systems not otherwise running
|
|
|
|
>>> web servers, for systems with web servers you don't have access to, and
|
|
|
|
>>> doubtless for other purposes. Such a plugin would add quite a bit of flexibility,
|
|
|
|
>>> and in that sense (IMO, of course) it'd be in the spirit of ikiwiki. --[[schmonz]]
|
2009-08-30 20:54:52 +02:00
|
|
|
|
|
|
|
>>>> Yes, I think this could probably be used in combination with ikiwiki's
|
|
|
|
>>>> httpauth and openid plugins. --[[Joey]]
|
2012-10-04 07:08:51 +02:00
|
|
|
|
|
|
|
>>>>> If you use the httpauth and the cgiauthurl method, you can restrict a path
|
|
|
|
>>>>> like /private/* to be accessible only under the authenticated request uri.
|