Extension:OAuth2 Client

The OAuth2 Client extension allows your users the ability to login to your wiki using any third-party site supporting OAuth2, like Google, Facebook, GitHub, SoundCloud.

This extension uses the PHP's League's OAuth 2.0 Client library.

Installation
The following instructions require Composer to install: ✅ - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
 * 1) Clone extension:
 * 2) Fetch OAuth2 Client submodule:
 * 3) Install submodule with Composer:
 * 4) Add the following code to the bottom of your "LocalSettings.php":
 * 5) Configure as required.

Configuration

 * Required settings to be added to "LocalSettings.php"

The Redirect URI for your wiki should be: http://your.wiki.domain/path/to/wiki/Special:OAuth2Client/callback


 * Optional further configuration

To use a popup window to login to the external OAuth2 server, copy the JS from modal.js to the MediaWiki:Common.js page on your wiki.
 * Popup Window

To support private wikis, you need to whitelist the special pages the extension adds in "LocalSettings.php":
 * Private Wikis