A CAS Authentication extension for Mediawiki 1.27, 1.23 (and possibly 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.27 and 1.23 with phpCAS 1.3.3. However, if you find it works well against a different version of Mediawiki and/or phpCAS, please feel free to let me know and I will keep track of it in this README.
To prevent users from logging in as bureaucrats, via specially crafted user
names, be sure to use the latest version of this module, and apply the
suggested change to the casNameLookup
hook in CASAuthSettings.php
, as shown
in CASAuthSettings.php.template
.
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 line to your LocalSettings.php
require_once( "$IP/extensions/CASAuth/CASAuth.php" );
-
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.