From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: stable
Implementation User identity
Description Allows to authenticate MediaWiki user accounts via Joomla! 3.6 and later
  • Mitch Schwenk,
  • Maarten van Dantzich,
  • Harold Prins
Latest version 2.11 (January 2017)
MediaWiki 1.27+
PHP 5.5+
Database changes No
License GNU General Public License 2.0 or later
Download external download
  • $wgAuthJoomla_MySQL_Host
  • $wgAuthJoomla_MySQL_Username
  • $wgAuthJoomla_MySQL_Password
  • $wgAuthJoomla_MySQL_Database
  • $wgAuthJoomla_TablePrefix
  • $wgAuthJoomla_Path
Translate the AuthJoomla2 extension if it is available at translatewiki.net
Check usage and version matrix.

The AuthJoomla2 extension allows to authenticate MediaWiki user accounts via Joomla! 3.6 and later.

Installation and configuration[edit]

  • Download and place the file(s) in a directory called AuthJoomlaEasy in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/AuthJoomlaEasy/AuthJoomlaEasy.php";
    // disable registration and sign-in from the wiki front page
    $wgGroupPermissions['*']['read'] = true;  // MediaWiki 1.5+ Settings
    $wgGroupPermissions['*']['edit'] = false;  // MediaWiki 1.5+ Settings
    $wgGroupPermissions['*']['createaccount'] = false;  // MediaWiki 1.5+ Settings
    // YOU MUST CHANGE THIS to something unique to your site and it must
    // match this setting in mediawikilogin plugin
    $wgAuthJoomla_security_key = 'geheim';
    // is Joomla in a different database than Mediawiki?
    $wgAuthJoomla_UseExtDatabase = true;
    //NOTE: You only need the next four settings if you set $wgAuthJoomla_UseExtDatabase to true.
    $wgAuthJoomla_MySQL_Host     = 'localhost';            // Joomla MySQL Host Name.
    $wgAuthJoomla_MySQL_Username = 'data';                 // Joomla MySQL Username.
    $wgAuthJoomla_MySQL_Password = 'data';                 // Joomla MySQL Password.
    $wgAuthJoomla_MySQL_Database = 'wikibridge_joomla16';  // Joomla MySQL Database Name.
    $wgAuthJoomla_TablePrefix       = 'jos_';
    $wgAuthJoomla_UserTable         = 'users';  // name of Joomla user table without prefix; normally 'users'
    //set these URLs to appropriate targets:
    $wgAuthJoomla_domain = 'http://server/wikibridge/joomla16/';  //location Joomla index.php file
    $wgAuthJoomla_LogoutLink = base64_encode($wgScriptPath);  //return location logout
    $wgAuthJoomla_LoginLink = base64_encode($wgScriptPath);  //return location login
    $wgAuthJoomla_LoginURL = $wgAuthJoomla_domain .'index.php?option=com_users&view=login&return=' . $wgAuthJoomla_LoginLink;
    $wgAuthJoomla_LogoutURL = $wgAuthJoomla_domain . 'index.php?option=com_users&task=logout&return=' . $wgAuthJoomla_LogoutLink;
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.