Extension:SimpleSamlAuth

Installation
(this is the management summary, see [//github.com/yorn/mwSimpleSamlAuth/blob/master/README.md README.md] for more information) require_once "$IP/extensions/SimpleSamlAuth/SimpleSamlAuth.php"; SimpleSamlAuth::registerHooks(array( // change these values to match your setup 'sspRoot' => '../simplesamlphp', 'authSource' => 'default-sp', 'usernameAttr' => 'uid', 'realnameAttr' => 'cn', 'mailAttr' => 'mail', 'autocreate' => false, 'readHook' => false, // if true, don't show "Login required" page, redirect right away 'autoMailConfirm' => false, // 'postLogoutRedirect' => 'https://www.mediawiki.org/' // some URL, if commented out redirect to page you came from ));
 * 1) Install simpleSamlPhp and make sure the www folder is available from the same vhost Mediawiki is installed on (e.g. on /simplesaml).
 * 2) [//simplesamlphp.org/docs/stable/simplesamlphp-sp Configure simpleSamlPhp].
 * 3) Copy [//raw.github.com/yorn/mwSimpleSamlAuth/master/SimpleSamlAuth.php SimpleSamlAuth.php] to extensions/SimpleSamlAuth/SimpleSamlAuth.php.
 * 4) Add configuration to LocalSettings.php and change configuration values:

Stability
This extension runs without problems in production environments, but it has not been tested in situations where users can edit their own e-mail address or readHook or autocreate are disabled. Because of this the extension is still set on beta.

So far the extension is only tested on Mediawiki 1.21 and PHP 5.3. It is however possible that the extension will run fine on lower PHP versions. Judging from the Hooks used in the extension, it should work on MediaWiki 1.19 (with readHook enabled) or 1.16 (with readHook disabled). It is even possible it will run on older versions, but with loss of functionality.

If you run the extension on a lower MediaWiki and/or PHP version, don't hesitate to change this page to reflect these lower requirements. If you encounter problems while running the extension on older software, you are welcome to [//github.com/yorn/mwSimpleSamlAuth/issues submit a bug report].