SamlSingleSignOnAuth based on miniOrange, which enables MediaWiki to use SAML 2.0 to SSO with SAML complaint IDP.
MediaWiki 1.25+
wfLoadExtension( 'SamlSingleSignOnAuth' );
$wgMoSamlIdpName = 'miniOrange';
$wgMoSamlIssuer = 'https://auth.miniorange.com/moas';
$wgMoSamlLoginURL = 'https://auth.miniorange.com/moas/idp/samlsso';
$wgMoSamlLogoutURL = 'https://auth.miniorange.com/moas/idp/samlsso';
$wgMoSamlLoginBindingType = 'HttpRedirect';
$wgMoSamlX509CertDesc = '-----BEGIN CERTIFICATE----- . . . . . . . . . . . . -----END CERTIFICATE-----';
$wgMoSamlIsBrokerOn = false;
$wgMoSamlRelayState = '';
$wgMoSamlIsResponseSigned = false;
$wgMoSamlIsAssertionSigned = true;
$wgMoSamlUpdateUser = true;
$wgMoSamlCreateUser = true;
$wgMoSamlEmailAttr = 'email'; $wgMoSamlUsernameAttr = 'username'; $wgMoSamlFNameAttr = 'fname'; $wgMoSamlLNameAttr = 'lname'; $wgMoSamlGroupAttr = 'role';
$wgMoSamlDefaultGroup = 'user';
OPTIONAL - Set this to override $wgServer as site URL in the extension. Please make sure this is the URL where MediaWiki is hosted and '/extensions/SamlSingleSignOnAuth/' can be appended to it.
$wgMoSamlServer = 'http://<MEDIAWIKI_DOMAIN>/mediawiki';
$wgMoSamlHostName = 'https://auth.miniorange.com';
$wgMoSamlCustomerKey = 12345;
Set this to true if you don't want your users to view website without being logged in using SAML. Users will be redirected to the IdP if user is not logged in. Make sure logout is enabled for this.
$wgMoSamlRegisteredOnlyAccess = false;
1.1.1
- Fix for HTML not getting loaded on login page