mamamusings

elizabeth lane lawley's thoughts on technology, academia, family, and tangential topics

Friday, 7 September 2007

using an existing cookie to control access to mediawiki?

For an upcoming event, I’ve created a homegrown registration system with unique user IDs and logins. It’s handling the basics of what I need well, but I’d also like to give registered participants access to a wiki for some pre-event coordination.

Does anyone know if it’s possible to use the existing cookie that’s set when my users login to control access to a mediawiki (or other wiki) installation? Either through built-in access control in the wiki software, or through some kind of .htaccess-level checking? I’d really prefer not to add a second level of authentication if I can avoid it, but I also don’t want to depend on security through obscurity.

Posted at 3:03 PM in: technology
Trackbacks

TrackBack URL for this entry: http://mamamusings.net/mt/liztrack.cgi/1407

Comments
Comment from Robert Delius Royar on September 9, 2007 9:03 AM (Permalink to Comment)

If you are using Apache (1.3 or 2.x), you could create a group file with all the names in a named group, one group per line. You can add 'Require valid-user' to your .htaccess if you every valid user should have access, and you do not wish yo have a group file.

See
Apache 1.3 "Authentication, Authorization, and Access Control" or
Apache 2.x "Authentication, Authorization, and Access Control"


Comment from Liz Lawley on September 14, 2007 9:30 PM (Permalink to Comment)

I solved the problem by using phpwiki, and adding the authentication code from the main site to the top of the index.php file for the wiki. Yay!


Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?


Liz sipping melange at Cafe Central in Vienna