Skip to content

archlinux-de/mediawiki-extensions-FlarumAuth

Repository files navigation

Enable this extension by adding this to LocalSettings.php:

    wfLoadExtension('FlarumAuth');
    $wgGroupPermissions['*']['createaccount'] = false;
    $wgGroupPermissions['sysop']['createaccount'] = false;
    $wgGroupPermissions['*']['autocreateaccount'] = true;

Define the Flarum URL:

    $wgFlarumUrl = 'https://flarum.example.com';

Purging deleted Flarum users
----------------------------

When a user is deleted from Flarum, their MediaWiki account persists. The
PurgeFlarumUsers maintenance script finds these orphaned accounts, merges their
contributions into the Anonymous user and then deletes the account.

The script uses the public Flarum REST API to check if users still exist. No API
key is needed as the GET endpoint for user profiles is accessible without
authentication.

Run the script:

    php maintenance/run.php extensions/FlarumAuth/maintenance/PurgeFlarumUsers.php

Use --dry-run to list users that would be purged without making changes:

    php maintenance/run.php extensions/FlarumAuth/maintenance/PurgeFlarumUsers.php --dry-run

About

Use Flarum accounts in MediaWiki

Resources

License

Stars

Watchers

Forks

Contributors