Jump to content

Extension:AuthFlarum

From mediawiki.org


MediaWiki extensions manual
AuthFlarum
Release status: stable
Implementation User identity , Hook
Description Allows to connect to MediaWiki from Flarum account.
Author(s) Guillaume Kulakowski (Llaumguitalk)
Latest version 1.0.0 (2023-04-22)
Compatibility policy Main branch maintains backward compatibility.
MediaWiki 1.36+
PHP 8.0+
Composer llaumgui/mw-auth-flarum
License GNU General Public License 2.0 or later
Download
https://github.com/llaumgui/mw-auth-flarum/blob/main/README.md
AuthFlarum
$wgAuthFlarumUri $wgAuthFlarumAutoCreate $wgAuthFlarumAutoCreateMinPost
$wgGroupPermissions['*']['autocreateaccount'] = true;

The AuthFlarum extension allows to connect to MediaWiki from an account based on the Flarum forum solution.

Requirements

[edit]
  • MediaWiki 1.36+ (Need features added in 1.36).
  • Flarum 1.0.0.

Installation

[edit]
  • Download and place the file(s) in a directory called AuthFlarum in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'AuthFlarum' );
    
  • Configure the Flarum URL setting up the following variables below this extension's call:
$wgAuthFlarumUri = "http://discuss.acme.ltd";
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]
$wgAuthFlarumUri
URI of your Flarum instance.
$wgAuthFlarumAutoCreate
Allows auto creation of MediaWiki account from Flarum? Becarrefull, also need:
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;
$wgAuthFlarumAutoCreateMinPost
Need a minimum number of posts to allow auto creation of MediaWiki account.

User rights

[edit]

Need:

$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;