Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

joostdekeijzer/mw-oauth2-client-extension

Repository files navigation

Unsupported and unmaintained

mw-oauth2-client-extension

MediaWiki OAuth2 Client Extension

MediaWiki implementation of the OAuth2 Client library.

Required settings in global $wgOAuth2Client

$wgOAuth2Client['client']['id']     = ''; // Your App Id or Client Id received by OAuth2 Server Administrator
$wgOAuth2Client['client']['secret'] = ''; // Secret received by OAuth2 Server Administrator

$wgOAuth2Client['configuration']['authorize_endpoint']     = '';            // full url's
$wgOAuth2Client['configuration']['access_token_endpoint']  = '';
$wgOAuth2Client['configuration']['api_endpoint']           = '';

Optional settings in global $wgOAuth2Client

$wgOAuth2Client['configuration']['sevice_name']            = 'OAuth2';      // the name of your service
$wgOAuth2Client['configuration']['sevice_login_link_text'] = '<service_name> login'; // the text of the login link

$wgOAuth2Client['configuration']['http_bearer_token']      = 'OAuth';       // Token to use in HTTP Authentication
$wgOAuth2Client['configuration']['query_parameter_token']  = 'oauth_token'; // query parameter to use

The callback url back to your wiki would be:

http://your.wiki.domain/path/to/wiki/Special:OAuth2Client/callback

License

LGPL (GNU Lesser General Public License) http://www.gnu.org/licenses/lgpl.html

OAuth2 vendor library

Currently, a modified version of the vznet OAuth2 client library is used. Since aug. 2013, this library is no longer in development.

Alternatives could be:

About

MediaWiki OAuth2 Client Extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages