Extension:EmailAuth

Not to be confused with Extension:Email Authorization.
Category:GPL licensed extensions
MediaWiki extensions manual
EmailAuth
Release status: stableCategory:Stable extensions
Implementation User identity Category:User identity extensions
Description Two-factor authentication via email
Author(s) Tgrtalk
Latest version 0.1.0
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy
MediaWiki 1.27+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Help Help:Extension:EmailAuth
  • $wgEmailAuthUnmaskedDomains
Quarterly downloads 1 (Ranked 61st)
Translate the EmailAuth extension if it is available at translatewiki.net
Vagrant role emailauth
Issues Open tasks · Report a bug
Category:All extensions

The EmailAuth extension allows secondary authentication via email. While this is less secure than other two-factor methods such as Extension:OATHAuth, it does not have to be set up by the user, it only requires an email address. This makes it useful for stopping password guessing attacks or securing suspicious logins.

The EmailAuthRequireToken hook is used to decide when the second factor is required. Without adding a handler for that hook e.g. in site configuration, the extension will not do anything.

Installation

  • Download and move the extracted EmailAuth folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EmailAuth
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'EmailAuth' );
    
  • Add a hook handler for the EmailAuthRequireToken hook.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration variables

$wgEmailAuthUnmaskedDomains
Email domains that are not masked during their display in EmailAuth UI components. (All other domains will be replaced with ***.***.) Defaults to gmail.com, googlemail.com, hotmail.com, yahoo.com. MW 1.45+

See also

Category:Extensions used on Wikimedia#EmailAuth
Category:All extensions Category:AuthChangeFormFields extensions Category:Extensions in Wikimedia version control Category:Extensions used on Wikimedia Category:Extensions with manual MediaWiki version Category:Extensions with release branches compatibility policy Category:GPL licensed extensions Category:Stable extensions Category:User identity extensions