Integrate MediaWiki with third-party authentication services using the REMOTE_USER environment variable.
- MediaWiki >= 1.27.0
-
Run
composerinside your MediaWikiextensionsdirectory:$ composer require tentwentyfour/remoteauth-ng -
Add the following lines at the end of your
LocalSettings.php:wfloadExtension( 'RemoteauthNg' ); // enable/disable auto user creation $wgRemoteAuthNgAutoCreateUser = false; // force remote user $wgRemoteAuthNgForceRemoteUser = true; -
Sit back and let the magic sink in. 😎