From 55ea2808977f77cad00995593cb5d581bbc63239 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 8 Nov 2024 22:37:36 +0000 Subject: [PATCH] Remove $wgOATHAuthDatabase support Change-Id: I284ffeac243b22e8b557255edca3a285828214b5 --- extension.json | 10 +------- src/Hook/MWServicesHandler.php | 42 ---------------------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 src/Hook/MWServicesHandler.php diff --git a/extension.json b/extension.json index a6f6df9a..f72d0791 100644 --- a/extension.json +++ b/extension.json @@ -54,8 +54,7 @@ "getUserPermissionsErrors": "main", "UserEffectiveGroups": "main", "UserGetRights": "main", - "BeforeCreateEchoEvent": "echo", - "MediaWikiServices": "mwservices" + "BeforeCreateEchoEvent": "echo" }, "HookHandlers": { "main": { @@ -72,9 +71,6 @@ }, "echo": { "class": "MediaWiki\\Extension\\OATHAuth\\Hook\\EchoHandler" - }, - "mwservices": { - "class": "MediaWiki\\Extension\\OATHAuth\\Hook\\MWServicesHandler" } }, "MessagesDirs": { @@ -88,10 +84,6 @@ "value": 4, "description": "Number of token windows on either side of current time to be considered valid for authentication." }, - "OATHAuthDatabase": { - "value": false, - "description": "Deprecated; configure the virtual-oathauth virtual domain instead." - }, "OATHAuthAccountPrefix": { "value": false, "description": "Prefix for user account shown during enrollment." diff --git a/src/Hook/MWServicesHandler.php b/src/Hook/MWServicesHandler.php deleted file mode 100644 index 826bb6d6..00000000 --- a/src/Hook/MWServicesHandler.php +++ /dev/null @@ -1,42 +0,0 @@ - - */ -class MWServicesHandler implements MediaWikiServicesHook { - /** @inheritDoc */ - public function onMediaWikiServices( $services ) { - global $wgOATHAuthDatabase, $wgVirtualDomainsMapping; - - if ( $wgOATHAuthDatabase && !isset( $wgVirtualDomainsMapping['virtual-oathauth'] ) ) { - $wgVirtualDomainsMapping['virtual-oathauth'] = [ 'db' => $wgOATHAuthDatabase ]; - - wfDeprecatedMsg( - '$wgOATHAuthDatabase is deprecated, configure the virtual-oathauth virtual domain instead', - '1.42', - ); - } - } -}