2017 © Pedro Peláez
 

mediawiki-extension mediawiki-oauth2-auth

Authenticate Mediawiki from external OAuth2 server

image

texthtml/mediawiki-oauth2-auth

Authenticate Mediawiki from external OAuth2 server

  • Wednesday, November 2, 2016
  • by mathroc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

mediawiki-oauth2-auth

Authenticate Mediawiki users from external OAuth2 server, (*1)

installation

composer require texthtml/mediawiki-oauth2-auth


// load the extension \TH\MediaWiki\OAuth2Auth\Extension::load(); // configure the OAuth2 provider $wgMediaWikiOAuth2Auth['provider.config'] = [ 'clientId' => 'demoapp', // The client ID assigned to you by the provider 'clientSecret' => 'demopass', // The client password assigned to you by the provider 'redirectUri' => 'https://example.com/callback-url', 'urlAuthorize' => 'https://auth.dataporten.no/oauth/authorization', 'urlAccessToken' => 'https://auth.dataporten.no/oauth/token', 'urlResourceOwnerDetails' => 'https://auth.dataporten.no/userinfo', ]; // optional: select another OAuth2 provider @see https://github.com/thephpleague/oauth2-client/blob/master/docs/providers/thirdparty.md $wgMediaWikiOAuth2Auth['provider.class'] = \League\OAuth2\Client\Provider\GenericProvider::class; // option: or build it manually (without setting $wgMediaWikiOAuth2Auth['provider.config']) $wgMediaWikiOAuth2Auth['provider'] = new \League\OAuth2\Client\Provider\GenericProvider::class([ 'clientId' => 'demoapp', // The client ID assigned to you by the provider 'clientSecret' => 'demopass', // The client password assigned to you by the provider 'redirectUri' => 'https://example.com/callback-url', 'urlAuthorize' => 'https://auth.dataporten.no/oauth/authorization', 'urlAccessToken' => 'https://auth.dataporten.no/oauth/token', 'urlResourceOwnerDetails' => 'https://auth.dataporten.no/userinfo', ]);

The Versions

02/11 2016

dev-master

9999999-dev

Authenticate Mediawiki from external OAuth2 server

  Sources   Download

The Requires

 

extension auth login oauth2 mediawiki

02/11 2016

v1.0.2

1.0.2.0

Authenticate Mediawiki from external OAuth2 server

  Sources   Download

The Requires

 

extension auth login oauth2 mediawiki

02/11 2016

dev-mathroc-patch-1

dev-mathroc-patch-1

Authenticate Mediawiki from external OAuth2 server

  Sources   Download

The Requires

 

extension auth login oauth2 mediawiki

28/10 2016

v1.0.1

1.0.1.0

Authenticate Mediawiki from external OAuth2 server

  Sources   Download

The Requires

 

extension auth login oauth2 mediawiki