Jump to content

User:NNikkhoui (WMF)/Local OAuth Setup

From Meta, a Wikimedia project coordination wiki

To install and test out the OAuth Extension locally, I had to execute some extra steps before it was setup properly:

  • Execute:

USE default;


UPDATE `user` SET `user_email_authenticated`= DATE_FORMAT(NOW(),'%Y%m%d%H%i%s') WHERE `user_email_authenticated` IS null;

in the database to confirm my user email address

  • Add the following to my LocalSettings.php

$wgGroupPermissions['sysop']['mwoauthproposeconsumer'] = true;

$wgGroupPermissions['sysop']['mwoauthupdateownconsumer'] = true;

$wgGroupPermissions['sysop']['mwoauthmanageconsumer'] = true;

$wgGroupPermissions['sysop']['mwoauthsuppress'] = true;

$wgGroupPermissions['sysop']['mwoauthviewsuppressed'] = true;

$wgGroupPermissions['sysop']['mwoauthviewprivate'] = true;

$wgGroupPermissions['sysop']['mwoauthmanagemygrants'] = true;

  • Add the following settings to set public/private key inside docker container:

$wgOAuth2PrivateKey $wgOAuth2PublicKey