jenkins-bot has submitted this change and it was merged.
Change subject: Set OAuth => true in RSD API
......................................................................
Set OAuth => true in RSD API
Change-Id: I849619782a856abb70a7031655d12a6fadf3c716
---
M backend/MWOAuth.hooks.php
M extension.json
2 files changed, 6 insertions(+), 1 deletion(-)
Approvals:
Anomie: Looks good to me, approved
jenkins-bot: Verified
diff --git a/backend/MWOAuth.hooks.php b/backend/MWOAuth.hooks.php
index 63194fb..8b13e7c 100644
--- a/backend/MWOAuth.hooks.php
+++ b/backend/MWOAuth.hooks.php
@@ -174,4 +174,8 @@
}
return true;
}
+
+ public static function onApiRsdServiceApis( array &$apis ) {
+ $apis['MediaWiki']['settings']['OAuth'] = true;
+ }
}
diff --git a/extension.json b/extension.json
index 27ce6c9..57592c3 100644
--- a/extension.json
+++ b/extension.json
@@ -131,7 +131,8 @@
"BeforeCreateEchoEvent":
"MediaWiki\\Extensions\\OAuth\\MWOAuthUIHooks::onBeforeCreateEchoEvent",
"CentralAuthAbortCentralAuthToken":
"MediaWiki\\Extensions\\OAuth\\MWOAuthAPISetup::onCentralAuthAbortCentralAuthToken",
"TestCanonicalRedirect":
"MediaWiki\\Extensions\\OAuth\\MWOAuthAPISetup::onTestCanonicalRedirect",
- "SetupAfterCache":
"MediaWiki\\Extensions\\OAuth\\MWOAuthHooks::onSetupAfterCache"
+ "SetupAfterCache":
"MediaWiki\\Extensions\\OAuth\\MWOAuthHooks::onSetupAfterCache",
+ "ApiRsdServiceApis":
"MediaWiki\\Extensions\\OAuth\\MWOAuthHooks::onApiRsdServiceApis"
},
"config": {
"MWOAuthCentralWiki": {
--
To view, visit https://gerrit.wikimedia.org/r/313652
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I849619782a856abb70a7031655d12a6fadf3c716
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OAuth
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Brion VIBBER <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits