PHPackages                             texthtml/mediawiki-oauth2-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. texthtml/mediawiki-oauth2-auth

AbandonedArchivedMediawiki-extension[Authentication &amp; Authorization](/categories/authentication)

texthtml/mediawiki-oauth2-auth
==============================

Authenticate Mediawiki from external OAuth2 server

v1.0.2(9y ago)145[2 issues](https://github.com/texthtml/mediawiki-oauth2-auth/issues)[2 PRs](https://github.com/texthtml/mediawiki-oauth2-auth/pulls)PHP

Since Oct 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/texthtml/mediawiki-oauth2-auth)[ Packagist](https://packagist.org/packages/texthtml/mediawiki-oauth2-auth)[ RSS](/packages/texthtml-mediawiki-oauth2-auth/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (0)

mediawiki-oauth2-auth
=====================

[](#mediawiki-oauth2-auth)

Authenticate Mediawiki users from external OAuth2 server

installation
------------

[](#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',
]);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~4 days

Total

3

Last Release

3527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3943b5c35797d1ede53aaed3d6812e4cf5b2dba7619a00dc7a381480a7b3d330?d=identicon)[mathroc](/maintainers/mathroc)

---

Top Contributors

[![mathroc](https://avatars.githubusercontent.com/u/291531?v=4)](https://github.com/mathroc "mathroc (6 commits)")[![text-html-renovate[bot]](https://avatars.githubusercontent.com/u/6465918?v=4)](https://github.com/text-html-renovate[bot] "text-html-renovate[bot] (1 commits)")

---

Tags

mediawikimediawiki-extensionoauth2authmediawikioauth2extensionlogin

### Embed Badge

![Health badge](/badges/texthtml-mediawiki-oauth2-auth/health.svg)

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

###  Alternatives

[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2276.2M36](/packages/stevenmaguire-oauth2-keycloak)[ekapusta/oauth2-esia

Allows to authenticate in ESIA and get authenticated individual personal information.

74193.8k1](/packages/ekapusta-oauth2-esia)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.8M9](/packages/microsoft-kiota-authentication-phpleague)[asundust/auth-captcha

Sliding captcha for Laravel-Admin auth, Multiple platform support / Laravel-Admin登录 滑动验证插件 多平台支持

603.8k](/packages/asundust-auth-captcha)[asundust/dcat-auth-captcha

Sliding captcha for Dcat-Admin auth, Multiple platform support / Dcat-Admin登录 (滑动)验证插件 多平台支持

522.8k](/packages/asundust-dcat-auth-captcha)[kronthto/laravel-oauth2-login

Provides a middleware to protect resources requiring an OAuth2 login

2117.5k1](/packages/kronthto-laravel-oauth2-login)

PHPackages © 2026

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