MediaWiki-Docker/Extension/CentralAuth

This page instructs you to install Extension:CentralAuth inside MediaWiki-Docker. All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.

Install MediaWiki-Docker with MariaDB
Follow the Quickstart instructions at MediaWiki-Docker page through step 3

Configure MariaDB
This has not been tested with the default sqlite database, so MariaDB is recommended.

Instead of following step 4 of the Quickstart, follow the instructions at MediaWiki-Docker/Configuration_recipes/Alternative_databases to install MediaWiki to a MariaDB database instead of the default SQLite.

Clone the repository and its dependencies
Adapted from Extension:CentralAuth

Create the CentralAuth database
Adapted from Extension:CentralAuth

Create CentralAuth tables
Adapted from Extension:CentralAuth

Install Composer dependencies
There are composer dependencies that must be installed for CentralAuth to function. For convenience, you may create  to install extension dependencies when you run composer commands for mediawiki. You can copy the provided mediawiki example file: At the time of writing, it contains the following config to include dependencies for all local skins and extensions. Now you only have to run to install dependencies for this and any extensions installed in the future.

Modify LocalSettings.php
Adapted from
 * Extension:CentralAuth
 * Extension:CentralAuth
 * Extension:CentralAuth

Add the following to.

At this point, newly registered accounts should be CentralAuth users, however, migration of existing accounts will not work.

Draft: (Optional) LocalSettings.php
Incomplete attempt to configure for migration scripts to work. Adapted from
 * Extension:CentralAuth
 * Special:MyLanguage/Manual:$wgConf
 * Extension:CentralAuth

(Optional) Populate AntiSpoof tables
Adapted from Extension:CentralAuth

Populate  AntiSpoof Insert unique entries into  AntiSpoof

Draft: (Optional) Migrate Existing Accounts
This will not succeed until MediaWiki-Docker/Extension/CentralAuth is completed.