Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

MediaWiki SSO using Firefox Accounts

This page describes various details on how to install and find code specific to SSO installation related to MediaWiki. To have an higher level description of how we implemented it, see WPD/Projects/SSO/How_we_implemented_it.


Configuration sample

To use our Accounts server, you have to ask us on the team-webplatform-systems mailing list to add your webapp to our OAuth Resource Server.

require_once( "$IP/extensions/WebPlatformAuth/WebPlatformAuth.php" );
$wgWebPlatformAuth['client']['id']             = '...';
$wgWebPlatformAuth['client']['secret']         = '...';
$wgWebPlatformAuth['endpoints']['fxa_oauth']   = '';
$wgWebPlatformAuth['endpoints']['fxa_profile'] = '';
$wgWebPlatformAuth['methods']['authorize']     = 'authorization';
$wgWebPlatformAuth['methods']['token']         = 'token';