| Both sides previous revision Previous revision Next revision | Previous revision |
| en:2.0:single_sign_on:saml_mediawiki [2026/09/04 21:41] – [TL;DR; - Quick Overview] kainhofer | en:2.0:single_sign_on:saml_mediawiki [2026/09/04 23:42] (current) – [Connecting MediaWiki to SimpleSAMLphp and mapping groups] kainhofer |
|---|
| 'admin.protectmetadata' => false, | 'admin.protectmetadata' => false, |
| 'enable.saml20-idp' => true, | 'enable.saml20-idp' => true, |
| 'auth.adminpassword' => 'password', // set a password here | // create the password hash via: ./bin/pwgen.php |
| | // see: https://github.com/simplesamlphp/simplesamlphp/wiki/Frequently-Asked-Questions-(FAQ) |
| | 'auth.adminpassword' => 'hashed_password', |
| 'secretsalt' => 'admidio', // choose any random salt! | 'secretsalt' => 'admidio', // choose any random salt! |
| 'baseurlpath' => 'https://mediawiki.local/simplesaml/', | 'baseurlpath' => 'https://mediawiki.local/simplesaml/', |
| ==== Connecting MediaWiki to SimpleSAMLphp and mapping groups ==== | ==== Connecting MediaWiki to SimpleSAMLphp and mapping groups ==== |
| |
| * Install the [[https://www.mediawiki.org/wiki/Extension:PluggableAuth|PluggableAuth]] extension by downloading or git-cloning the code to the ''extensions/'' directory. | * Install the [[https://www.mediawiki.org/wiki/Extension:PluggableAuth|PluggableAuth]] extension by downloading or git-cloning the code to the ''extensions/'' directory. |
| * Install the [[https://www.mediawiki.org/wiki/Extension:SimpleSAMLphp|SimpleSAMLphp]] extension by downloading or git-cloning the code to the ''extensions/'' directory. | * Install the [[https://www.mediawiki.org/wiki/Extension:SimpleSAMLphp|SimpleSAMLphp]] extension by downloading or git-cloning the code to the ''extensions/'' directory. |
| * Open the ''LocalSettings.php'' configuration file of MediaWiki and append the following lines to the end of the file:<code php> | * Open the ''LocalSettings.php'' configuration file of MediaWiki and append the following lines to the end of the file: |
| | <code php> |
| wfLoadExtension( 'PluggableAuth' ); | wfLoadExtension( 'PluggableAuth' ); |
| wfLoadExtension( 'SimpleSAMLphp' ); | wfLoadExtension( 'SimpleSAMLphp' ); |