forked from soudis/mediawiki-saml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSamlSingleSignOnAuth.php
More file actions
32 lines (29 loc) · 954 Bytes
/
SamlSingleSignOnAuth.php
File metadata and controls
32 lines (29 loc) · 954 Bytes
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
<?php
/**
* SamlSingleSignOnAuth
*
* SAML authentication MediaWiki extension.
*
* @file
* @ingroup Extensions
* @defgroup SamlSingleSignOnAuth
*
*
* @package SamlSingleSignOnAuth
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( "This is a MediaWiki extension, and must be run from within MediaWiki.\n" );
}
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'SamlSingleSignOnAuth' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['SamlSingleSignOnAuth'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['SamlSingleSignOnAuthAlias'] = __DIR__ . '/SamlSingleSignOnAuth.i18n.alias.php';
wfWarn(
'Deprecated PHP entry point used for SamlSingleSignOnAuth extension. Please use wfLoadExtension ' .
'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.'
);
return true;
} else {
die( 'This version of the SamlSingleSignOnAuth extension requires MediaWiki 1.25+' );
}