A CAS Authentication extension for Mediawiki. Tested with versions with 1.19, although it should work for at least versions 1.16+, if not earlier.
The CASAuth extension facilitates CAS authentication for your Mediawiki installation. This particular code is derived from work found here.
This code is customized towards usage for private wikis, with the ability to restrict access to the wiki to specific usernames.
This extension is currently written for, and tested against Mediawiki 1.19. However, if you find it works well against a different version of Mediawiki, please feel free to let me know and I will keep track of it in this README.
The extension will follow whatever version of Mediawiki is found in the [EPEL](http://fedoraproject.org/wiki/EPEL EPEL) repository.
Assuming a working CAS system, installation should take under 15 minutes. Assume $WIKI is the directory for your wiki.
-
Create folder $WIKI/extensions/CASAuth/
-
Download this source code into that directory
-
Download the phpCAS extension and extract it to the folder $WIKI/extensions/CASAuth/CAS/
-
Add the following lines to your LocalSettings.php
require_once( "$IP/extensions/CASAuth/CASAuth.php" ); casSetup();
-
In the $WIKI/extensions/CASAuth/ directory, copy the CASAuthSettings.php.template file to CASAuthSettings.php and modify it for your environment.
-
You should now have working CAS authentication for your wiki!
Source code found here is derived from the extension found here, originally written by Ioannis Yessios.