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

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

Bug: T131420
Change-Id: I08064e64ed5e34f7b2932aaec28130cf2f9a9f2d
---
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
  Luke081515: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings-labs.php 
b/wmf-config/CommonSettings-labs.php
index 59de815..fa44c37 100644
--- a/wmf-config/CommonSettings-labs.php
+++ b/wmf-config/CommonSettings-labs.php
@@ -341,6 +341,13 @@
        wfLoadExtension( 'Newsletter' );
 }
 
+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 f5be518..a72ace8 100644
--- a/wmf-config/InitialiseSettings-labs.php
+++ b/wmf-config/InitialiseSettings-labs.php
@@ -653,5 +653,9 @@
                'wmgUseNewsletter' => array(
                        'default' => true,  // T127297
                ),
+               // Test enabling OATH for 2FA
+               'wmgUseOATHAuth' => array(
+                       'default' => true,
+               ),
        );
 } # wmflLabsSettings()

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

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

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

Reply via email to