CSteipp has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/282193

Change subject: Revert "Revert "Enable Ex:OATHAuth in beta, disabled for all 
users""
......................................................................

Revert "Revert "Enable Ex:OATHAuth in beta, disabled for all users""

This reverts commit a68190100f7d6831b84a366f895f1dc800183e98.

Change-Id: Iac773171e98c76d3eef81729000146508fbf99d3
---
M wmf-config/CommonSettings-labs.php
M wmf-config/InitialiseSettings-labs.php
2 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/93/282193/1

diff --git a/wmf-config/CommonSettings-labs.php 
b/wmf-config/CommonSettings-labs.php
index 8bf542b..a5ef67c 100644
--- a/wmf-config/CommonSettings-labs.php
+++ b/wmf-config/CommonSettings-labs.php
@@ -337,6 +337,13 @@
        $wgOresBaseUrl = 'https://ores.wmflabs.org/';
 }
 
+if ( $wmgUseOATHAuth && $wmgUseCentralAuth ) {
+       wfLoadExtension( 'OATHAuth' );
+       $wgOATHAuthDatabase = 'centralauth';
+       // Roll this feature out to specific groups initially
+       $wgGroupPermissions['*']['oathauth-enable'] = false;
+}
+
 // Experimental
 $wgGadgetsCaching = false;
 
diff --git a/wmf-config/InitialiseSettings-labs.php 
b/wmf-config/InitialiseSettings-labs.php
index 4f6240e..81d4b18 100644
--- a/wmf-config/InitialiseSettings-labs.php
+++ b/wmf-config/InitialiseSettings-labs.php
@@ -652,5 +652,9 @@
                'wmgUseCollection' => array(
                        'zhwiki' => true, // T128425
                ),
+               // Test enabling OATH for 2FA
+               'wmgUseOATHAuth' => array(
+                       'default' => true,
+               )
        );
 } # wmflLabsSettings()

-- 
To view, visit https://gerrit.wikimedia.org/r/282193
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac773171e98c76d3eef81729000146508fbf99d3
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: CSteipp <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to