PHPackages                             mediawiki/guzzle-json-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. mediawiki/guzzle-json-auth

ActiveMediawiki-extension[HTTP &amp; Networking](/categories/http)

mediawiki/guzzle-json-auth
==========================

Authenticate with a JSON endpoint using a configurable Guzzle client

0.1.2(7y ago)023[5 issues](https://github.com/ravage84/mediawiki-guzzle-json-auth/issues)MITPHPPHP &gt;=5.4.0

Since May 18Pushed 7y agoCompare

[ Source](https://github.com/ravage84/mediawiki-guzzle-json-auth)[ Packagist](https://packagist.org/packages/mediawiki/guzzle-json-auth)[ Docs](https://github.com/ravage84/mediawiki-guzzle-json-auth)[ RSS](/packages/mediawiki-guzzle-json-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

mediawiki-guzzle-json-auth
==========================

[](#mediawiki-guzzle-json-auth)

Authenticate your MediaWiki with a JSON endpoint using a configurable Guzzle client

[![Latest Version on Packagist](https://camo.githubusercontent.com/ec0764d14fed8d8f91611930db98129417b4f700835d6457aa075beaa4915187/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6564696177696b692f67757a7a6c652d6a736f6e2d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mediawiki/guzzle-json-auth)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/789c375b56e1929ea5867111cb11f20d965f24f3c305f9f1151b5f5394952f97/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72617661676538342f6d6564696177696b692d67757a7a6c652d6a736f6e2d617574682f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ravage84/mediawiki-guzzle-json-auth)[![Coverage Status](https://camo.githubusercontent.com/cf75570a8427fea6b65d896a8d9ab29967f9ba1103a1983c8b50da3bd59ed54d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72617661676538342f6d6564696177696b692d67757a7a6c652d6a736f6e2d617574682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ravage84/mediawiki-guzzle-json-auth/code-structure)[![Quality Score](https://camo.githubusercontent.com/4ff3ea05b590e743fe89c382757d78c1e8d3e0aebcb6ef77e0b6646b7499f728/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72617661676538342f6d6564696177696b692d67757a7a6c652d6a736f6e2d617574682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ravage84/mediawiki-guzzle-json-auth)[![Total Downloads](https://camo.githubusercontent.com/48eb109a9d287e9c84ecf2064e598bee307eb9cce24f79c33d8394640e5353f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6564696177696b692f67757a7a6c652d6a736f6e2d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mediawiki/guzzle-json-auth)

Install
-------

[](#install)

### Requirements

[](#requirements)

- PHP &gt;= 5.4
- Composer
- MediaWiki 1.22

### Via Composer

[](#via-composer)

```
$ composer require mediawiki/guzzle-json-auth
```

Usage
-----

[](#usage)

To Setup the authentication, add the following lines to your LocalSettings.php and change the values to your needs:

```
# 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
----------

[](#change-log)

Please see [CHANGELOG.md](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Marc Würth](https://github.com/ravage84)
- [All Contributors](https://github.com/ravage84/mediawiki-guzzle-json-auth/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.txt) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~641 days

Total

3

Last Release

2735d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b319e683a7001c095bcf138d870d7b7ed12a1040e11c0264b914c2e213922169?d=identicon)[ravage84](/maintainers/ravage84)

---

Top Contributors

[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (36 commits)")

---

Tags

jsonGuzzleauthmediawikiextensionwikiAuthicationAuthPlugin

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mediawiki-guzzle-json-auth/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-guzzle-json-auth/health.svg)](https://phpackages.com/packages/mediawiki-guzzle-json-auth)
```

###  Alternatives

[graze/guzzle-jsonrpc

JSON-RPC 2.0 client for Guzzle

981.2M24](/packages/graze-guzzle-jsonrpc)[eljam/guzzle-jwt-middleware

A jwt authentication middleware for guzzle 6

28722.5k3](/packages/eljam-guzzle-jwt-middleware)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[mediawiki/bootstrap

Provides the Bootstrap 5 web front-end framework to MediaWiki skins and extensions

15102.0k5](/packages/mediawiki-bootstrap)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
