Page MenuHomePhabricator

Add OAuth Extension to Wikimedia Foundation Wiki
Closed, ResolvedPublic

Description

For the DMCA tool, we currently ask users to copy & paste Wikitext for the DMCA Takedown notice that is posted on Wikimedia Foundation.

I think it would be a better user experience if we added OAuth to Wikimedia Foundation and then the Takedown Tools could post this notice automatically for the user.

Event Timeline

@dbarratt, while I agree it would make for a more smooth UX, I don't think it's worth all the hassle. For instance, the page where this would be posted might need changing by the user, the user might want to add stuff, they might want a proper edit summary, there might be issues with permissions etc.
Also don't forget this tool is not going to get a high amount of usage. 20-30 takedowns per year IIRC.

CC: @TBolliger

After it being explained on IRC, I don't see any obvious reason why OAuth can't be enabled on foundationwiki

Needs the DB table creating, adding to InitaliseSettings and some minor massaging in CommonSettings

	wfLoadExtension( 'OAuth' );
	if ( in_array( $wgDBname, [ 'labswiki', 'labtestwiki' ] ) ) {
		// Wikitech and its testing variant use local OAuth tables
		$wgMWOAuthCentralWiki = false;
	}

I agree with @Niharika — this is a nice-to-have, not a hard requirement.

Yeah I mean it's certainly not a requirement for the Takedown Tools, but probably a good idea to have available on Wikimedia Foundation anyways (assuming it's trivial).

No qualms from me. I'm okay with OAuth on foundationwiki.

Change 370310 had a related patch set uploaded (by MarcoAurelio; owner: MarcoAurelio):
[operations/mediawiki-config@master] Enabling OAuth on foundationwiki

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

Hi. I've added a patch to have the feature activated on foundationwiki, and created a substask for sysadmins to create the tables before. Please review the patch and let me know if there's something wrong with it, or missing. Best regards.

OAuth tables have been created. If the patch is reviewed successfully this can happen in the next SWAT windows.

Scheduled for SWAT: Thursday, August 10 (Evening SWAT).

Change 370310 merged by jenkins-bot:
[operations/mediawiki-config@master] Enabling OAuth on foundationwiki

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

MarcoAurelio moved this task from ready/patched to cabinet on the User-MarcoAurelio board.
MarcoAurelio removed a project: Patch-For-Review.

OAuth is now avalaible on foundationwiki. Bureaucrats on that wiki can add and remove any user to/from that group.