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
Follow the Quickstart instructions at MediaWiki-Docker page. Once MediaWiki is running and available at, then continue with instructions on this page.

Configure MariaDB
The extension can have unexpected behavior with the default sqlite database, so MariaDB is recommended. See: https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/Alternative_databases#MySQL_(single_database_server)

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.