jenkins-bot has submitted this change and it was merged.

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


Enable Ex:OATHAuth in beta, disabled for all users

Enable OATHAuth in beta, but disable it for all users. For testing,
we'll give the user right to the global Staff group.

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

Approvals:
  CSteipp: Looks good to me, approved
  jenkins-bot: Verified



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/280676
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I29d054e60d6c81524037143fab2bc07db4a2d38e
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: CSteipp <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: Dpatrick <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to