Configure 2FA For MediaWiki: Difference between revisions
From BeeWiki
Created page with "<strong>Welp!</strong> I added the ''OATHAuth'' extension to this Mediawiki instance. This means that you can enable two-factor authentication to your profile to further secure your login procedure. There are a number of OATH clients on the market, but I decided to just install the ''oathtool'' command line tool on my Fedora based laptop, by running <pre> sudo dnf install oathtool.x86_64 </pre> I'll document how to register for 2FA here tomorrow. It's too late toni..." |
No edit summary |
||
| Line 1: | Line 1: | ||
< | =How to use OATHAuth in Mediawiki= | ||
# Configure ''OATHAuth''. | |||
To configure your Mediawiki instance to allow users to enable two-factor authentication simple add | |||
<pre>wfLoadExtension( 'OATHAuth' );</pre> to the end of the ''LocalSettings.php'' file located in the root of the MediwWiki directory. | |||
I added the ''OATHAuth'' extension to this Mediawiki instance. This means that you can enable two-factor authentication to your profile to further secure your login procedure. There are a number of OATH clients on the market, but I decided to just install the ''oathtool'' command line tool on my Fedora based laptop, by running | I added the ''OATHAuth'' extension to this Mediawiki instance. This means that you can enable two-factor authentication to your profile to further secure your login procedure. There are a number of OATH clients on the market, but I decided to just install the ''oathtool'' command line tool on my Fedora based laptop, by running | ||
Revision as of 15:38, 5 December 2024
How to use OATHAuth in Mediawiki
- Configure OATHAuth.
To configure your Mediawiki instance to allow users to enable two-factor authentication simple add
wfLoadExtension( 'OATHAuth' );
to the end of the LocalSettings.php file located in the root of the MediwWiki directory.
I added the OATHAuth extension to this Mediawiki instance. This means that you can enable two-factor authentication to your profile to further secure your login procedure. There are a number of OATH clients on the market, but I decided to just install the oathtool command line tool on my Fedora based laptop, by running
sudo dnf install oathtool.x86_64
I'll document how to register for 2FA here tomorrow. It's too late tonight.
I then run
oathtool --base32 --totp "REGISTERED KEY GOES HERE"
Which generates a 6 digit code to give to mediawiki when prompted.