Erweiterung:OATHAuth
![]() Freigabestatus: stabil |
|
---|---|
![]() |
|
Einbindung | Benutzerrechte , Spezialseite , Seitenaktivität |
Beschreibung | Ermöglicht 2-Faktor Authentifizierung um sich Anzumelden |
Autor(en) | Ryan Lane |
Letzte Version | Laufende Aktualisierungen |
Kompatibilitätspolitik | Snapshots werden zusammen mit MediaWiki veröffentlicht. Der Master ist nicht abwärtskompatibel. |
MediaWiki | 1.29+ |
Datenbankänderungen | Ja |
Tabellen | oathauth_users |
Lizenz | GPL-2.0-or-later AND GPL-3.0-or-later |
Herunterladen | |
|
|
|
|
Quarterly downloads | 87 (Ranked 83rd) |
Public wikis using | 1,459 (Ranked 205th) |
Übersetze die OATHAuth-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
The OathAuth extension provides two-factor authentication support. By default, this includes a time-based one-time password (TOTP) implementation that allows users to generate 2FA codes from their phone or desktop app. Unterstützung von Clients ist für die meisten Mobiltelefone, Smartphones und Desktops verfügbar.
Verwendung
Die Hilfeseite zur Zwei-Faktor-Authentifizierung bietet Informationen für Endbenutzer wie diese Erweiterung genutzt werden kann. However the special page used will also guide users.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
OATHAuth
im Ordnerextensions/
ablegen. - Wird von git aus installiert, ist Composer auszuführen, um PHP-Abhängigkeiten zu installieren, indem
composer install --no-dev
im Erweiterungsverzeichnis ausgeführt wird. (Siehe task T173141 für mögliche Komplikationen.) - Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
wfLoadExtension( 'OATHAuth' );
- Führe das Aktualisierungsskript aus, welches automatisch die notwendigen Datenbanktabellen erstellt, die diese Erweiterung braucht.
- Konfiguriere nach Bedarf.
- It is strongly recommended to setup caching when using OATHAuth. This will improve performance, but also the security of your wiki if you're using OATHAuth. If you are only running one application/web server and have php-apcu installed, and no specific cache configured, MediaWiki will likely fallback to using APCu. If you are using multiple application/web server it is advised to setup local cluster caching that can be used by all hosts. Examples include Memcached .
Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Konfiguration
Parameter
Configuration Flag | Standardwert | Beschreibung |
---|---|---|
$wgOATHAuthWindowRadius
|
4
|
The number of token windows in each direction that should be valid.
This tells OATH to accept tokens for a range of effectively |
$wgOATHAuthDatabase
|
false
|
The database domain. Only used in a multi-database environment. |
$wgOATHAuthSecret
|
false
|
The base OATHAuth secret for this wiki from which all encryption keys are derived.
If |
$wgOATHAuthAccountPrefix
|
false
|
The prefix used for the OATHAuth user account name and the issuer used for the account.
If |
$wgOATHExclusiveRights
|
[]
|
Set of permissions that are revoked from users who did not log in using two-factor authentication. |
$wgOATHRequiredForGroups
|
[]
|
Sets a list of user groups that are required to have two-factor authentication enabled. Use 'user' if you want all logged in users to be required to have two-factor authentication enabled. |
OATHAuth also adds a key to the $wgRateLimits array to define rate limits for authentication attempts:
'badoath' => [
'&can-bypass' => false,
'user' => [ 10, 60 ],
'user-global' => [ 10, 60 ],
]
Note that the user-global
key is available only since 1.35.
Earlier version have to rely on user
and perhaps ip-all
.
See the documentation of $wgRateLimits
for details.
User permission
- Granting access to enable OATHAuth
Users should be given access to the oathauth-enable
user right so that they can enable it at Special:OATHAuth (a link to which appears at Special:Preferences).
$wgGroupPermissions['user']['oathauth-enable'] = true;
The above will grant all registered users access to enable OATHAuth.
Verwaltung
Resetting a user token
In the event that a user both loses their token generator and the recovery tokens, two-factor authentication may be removed from the user by running the disableOATHAuthForUser
maintenance script:
MediaWiki Version: | 1.40 |
$ ./maintenance/run OATHAuth:disableOATHAuthForUser <user>
MediaWiki Version: | ≤ 1.39 |
$ php ./extensions/OATHAuth/maintenance/disableOATHAuthForUser.php <user>
Where <user>
is the name of the user to have 2FA disabled.
Siehe auch
- Wikimedia Security Team/Zwei-Faktor-Authentifizierung für CentralAuth-Wikis
- Two-factor authentication (TFA)
- Extension:WebAuthn
- Initiative for Open Authentication (OATH)
![]() | Diese Erweiterung wird in einem oder mehreren Wikis von Wikimedia verwendet. Das bedeutet mit hoher Wahrscheinlichkeit, dass die Erweiterung stabil ist und gut genug funktioniert, um auf solch häufig besuchten Webseiten benutzt zu werden. Suche nach dem Erweiterungs-Namen in den Wikimedia CommonSettings.php und den InitialiseSettings.php-Konfigurations-Dateien, um nachzusehen, wo es installiert ist. Eine vollständige Liste der installierten Erweiterungen in einem bestimmten Wiki wird auf Special:Version im Wiki generiert und angezeigt. |
![]() | Diese Erweiterung ist in den folgenden Softwarepaketen enthalten und/oder wird von den folgenden Wiki-Farmen, bzw. Wiki-Hostern verwendet: Dies ist keine maßgebliche Liste. Softwarepakete und/oder Wiki-Farmen, bzw. Wiki-Hoster nutzen diese Erweiterung ggf., obwohl sie nicht in dieser Liste enthalten sind. Prüfe daher stets die Nutzung im verwendeten Softwarepaket und/oder bei der Wiki-Farm, bzw. dem Wiki-Hoster. |
- Extensions bundled with MediaWiki 1.31/de
- Stable extensions/de
- User rights extensions/de
- Special page extensions/de
- Page action extensions/de
- Extensions with unknown license/de
- Extensions in Wikimedia version control/de
- Extensions which add rights/de
- AuthChangeFormFields extensions/de
- BeforeCreateEchoEvent extensions/de
- GetPreferences extensions/de
- LoadExtensionSchemaUpdates extensions/de
- MediaWikiServices extensions/de
- UserEffectiveGroups extensions/de
- UserGetRights extensions/de
- GetUserPermissionsErrors extensions/de
- All extensions/de
- Extensions requiring Composer with git/de
- Extensions used on Wikimedia/de
- Extensions included in BlueSpice/de
- Extensions included in Canasta/de
- Extensions available as Debian packages/de
- Extensions included in Miraheze/de
- Extensions included in MyWikis/de
- Extensions included in ProWiki/de
- Extensions included in semantic::core/de
- Extensions included in wiki.gg/de
- Extensions included in WikiForge/de
- Extensions included in WikiTide/de
- Login extensions/de