2017 © Pedro PelĆ”ez
 

mediawiki-extension guzzle-json-auth

Authenticate with a JSON endpoint using a configurable Guzzle client

image

mediawiki/guzzle-json-auth

Authenticate with a JSON endpoint using a configurable Guzzle client

  • Tuesday, April 25, 2017
  • by ravage84
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

mediawiki-guzzle-json-auth

Authenticate your MediaWiki with a JSON endpoint using a configurable Guzzle client, (*1)

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads, (*2)

Install

Requirements

  • PHP >= 5.4
  • Composer
  • MediaWiki 1.22

Via Composer

``` bash $ composer require mediawiki/guzzle-json-auth, (*3)


## Usage To Setup the authentication, add the following lines to your LocalSettings.php and change the values to your needs: ```` php # Setup GuzzleJsonAuth $wgGuzzleJsonAuthUrl = 'http://yourapplication.com/your_json_endpoint'; $wgGuzzleJsonRequestBaseKey = 'User'; $wgGuzzleJsonRequestUsernameKey = 'username'; $wgGuzzleJsonRequestPasswordKey = 'password'; $wgGuzzleJsonResponseBaseKey = 'user'; $wgGuzzleJsonResponseUsernameKey = 'username'; $wgGuzzleJsonResponseRealNameKey = 'real_name'; $wgGuzzleJsonResponseEmailKey = 'email'; // Load and initialize the GuzzleJsonAuth extension require_once("$IP/extensions/GuzzleJsonAuth/GuzzleJsonAuth.php"); $wgAuth = new \MediaWiki\GuzzleJsonAuth\GuzzleJsonAuth(); ```` Authenticated users will be created in your Wikis database, but without password. The authentication endpoint needs to return at least tne username, real name and email of the authenticated user as result. If the authentication failed, it must not return the username, otherwise it the user will be logged in nonetheless. This extension will fall back to local authentication, if the user could not be authenticated externally. ## Change log Please see [CHANGELOG.md](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ phpunit

Contributing

Please see CONTRIBUTING for details., (*4)

Security

If you discover any security related issues, please email ravage@bluewin.ch instead of using the issue tracker., (*5)

Credits

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

25/04 2017

dev-master

9999999-dev https://github.com/ravage84/mediawiki-guzzle-json-auth

Authenticate with a JSON endpoint using a configurable Guzzle client

  Sources   Download

MIT

The Requires

 

The Development Requires

extension json auth guzzle mediawiki wiki authication authplugin

20/05 2015

0.1.1

0.1.1.0 https://github.com/ravage84/mediawiki-guzzle-json-auth

Authenticate with a JSON endpoint using a configurable Guzzle client

  Sources   Download

MIT

The Requires

 

The Development Requires

extension json auth guzzle mediawiki wiki authication authplugin

18/05 2015

0.1.0

0.1.0.0 https://github.com/ravage84/mediawiki-guzzle-json-auth

Authenticate with a JSON endpoint using a configurable Guzzle client

  Sources   Download

MIT

The Requires

 

The Development Requires

extension json auth guzzle mediawiki wiki authication authplugin