Handles user authorization based on Mediawiki-Opauth. This extension requres Mediawiki-Opauth to be installed.
- Put OpauthLogin folder into extensions folder
- Add these lines into LocalSettings.php at bottom:
require_once "$IP/extensions/OpauthLogin/OpauthLogin.php";
- Run mediawiki update script:
php maintenance/update.php --quick
-
Done. Now users will be handled automatically when logged/registerd via social networks (via Opauth). Please notice that by default users will be created with account names sources from social networks, but in case of collision it will try to create suffixed account (with numbers). If user name retrieved from social network is not a valid Mediawiki account name then it will generate random UID as username and store name in "real name" field instead.
-
By default plugin will add register button at login / signup pages, but this behavior can be disabled by setting
$wgOpauthLoginEnableButtons = false;