-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmediawiki-multiauth-configuration.txt
61 lines (44 loc) · 1.93 KB
/
mediawiki-multiauth-configuration.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
MediaWiki MultiAuthPlugin configuration
================================================================
Date: 2011-nov-03
Author: M. Dobrinic
MultiAuthPlugin was created to support external authentication,
for example using SimpleSAMLphp. It was taken from the source
and updated to support MediaWiki 1.17 and SimpleSAMLphp 1.8.0
Pre requisites for using MultiAuthPlugin are an installed and
configured SimpelSAMLphp installation.
SimpleSAMLphp configuration
---------------------------
- Install SimpleSAMLphp in /var/www/simplesamlphp
- Add alias in Apache Virtual-host definition:
<VirtualHost ...>
...
Alias /var/www/simplesaml-x.y.z/www
...
</VirtualHost>
- Configure the appropriate metadata in the metadata/ directory
- Ensure NameID is being provided in the set of attributes:
In config.php: authproc.sp : make sure NameID is made available in user attributes:
20 => array('class' => 'saml:NameIDAttribute',
'attribute' => 'NameID',
'format' => '%V',)
- Session Cookie alignment; set the SimpleSAMLphp session-name
to the MediaWiki session-name:
In config.php:
session.phpsession.cookiename' => 'mediawiki_mw__session',
MultiAuthPlugin configuration
---------------------------
- Install the MultiAuthPlugin files in /extensions/MultiAuthPlugin
The extension can be found in the svn-repository:
/extensions/MultiAuthPlugin
- Review the configuration in MultiAuthPlugin.config.php
- Enable the MultiAuthPlugin in /etc/mediawiki/LocalSettings.php
by appending the following lines:
// Hook external authentication into MediaWiki
define('SIMPLESAML_PATH', '/Users/dopey/Projects/SURFnet/MediaWiki/Workspace/simplesaml');
require_once(SIMPLESAML_PATH."/lib/_autoload.php");
/* try MultiAuthPlugin */
if (!$wgCommandLineMode) {
# extension includes
require_once("extensions/MultiAuthPlugin/MultiAuthPlugin.php");
}