PHPackages                             songnguxyz/oauth-mediawiki - 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. songnguxyz/oauth-mediawiki

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

songnguxyz/oauth-mediawiki
==========================

Log in to your Flarum forum with MediaWiki OAuth2

v1.3(5mo ago)016[1 PRs](https://github.com/songnguxyz/flarum-ext-oauth-mediawiki/pulls)MITPHP

Since Dec 6Pushed 4mo agoCompare

[ Source](https://github.com/songnguxyz/flarum-ext-oauth-mediawiki)[ Packagist](https://packagist.org/packages/songnguxyz/oauth-mediawiki)[ RSS](/packages/songnguxyz-oauth-mediawiki/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (10)Used By (0)

Log In With MediaWiki
=====================

[](#log-in-with-mediawiki)

[![Log In With MediaWiki](https://camo.githubusercontent.com/5d55ba370f8d9e49868d2af1b13e273eb488a2408bf1b993dfed5fb12cfdb63a/68747470733a2f2f666c6172756d2e6f72672f657874656e73696f6e2f736f6e676e677578797a2f6f617574682d6d6564696177696b692f6f70656e2d67726170682d696d616765)](https://camo.githubusercontent.com/5d55ba370f8d9e49868d2af1b13e273eb488a2408bf1b993dfed5fb12cfdb63a/68747470733a2f2f666c6172756d2e6f72672f657874656e73696f6e2f736f6e676e677578797a2f6f617574682d6d6564696177696b692f6f70656e2d67726170682d696d616765)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/85b6a4a182372ba481c6a08729af719f0f452729d4f6cd6e9ebf913afb468e6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6e676e677578797a2f6f617574682d6d6564696177696b692e737667)](https://packagist.org/packages/songnguxyz/oauth-mediawiki) [![Total Downloads](https://camo.githubusercontent.com/47069b9faaab5bb521b0afde3b1c5ba476eb1b3917df0695c069700c1504e1c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6e676e677578797a2f6f617574682d6d6564696177696b692e737667)](https://packagist.org/packages/songnguxyz/oauth-mediawiki)

Log in to your Flarum forum with MediaWiki OAuth2. An addon for [FoF OAuth](https://github.com/friendsofflarum/oauth).

This extension enables users to authenticate with any MediaWiki installation that supports OAuth2 (MediaWiki 1.35+, with the [OAuth](https://mediawiki.org/wiki/Extension:OAuth) extension installed).

Installation
------------

[](#installation)

Install with composer:

```
composer require songnguxyz/oauth-mediawiki
php flarum migrate
php flarum cache:clear
```

Updating
--------

[](#updating)

```
composer update songnguxyz/oauth-mediawiki
php flarum cache:clear
```

Setup
-----

[](#setup)

1. Enable the [OAuth extension](https://www.mediawiki.org/wiki/Extension:OAuth) on your MediaWiki installation. See [MediaWiki OAuth documentation](https://www.mediawiki.org/wiki/OAuth/For_Developers) for details.
2. Register an OAuth2 consumer on your MediaWiki:

    - Go to `Special:OAuthConsumerRegistration/propose` on your wiki
    - Select "**OAuth 2.0**" as the OAuth protocol version (`Propose an OAuth 2.0 client`)
    - Fill in the required details, including the callback URL from your Flarum OAuth settings
    - Request the necessary grants (at minimum: `mwoauth-authonly` for authentication)
    - Note down the **Client Key** and **Client Secret** provided
3. In your Flarum admin panel, enable this extension and configure:

    - **MediaWiki Base URL**: Your MediaWiki REST API base URL (e.g., `https://yourwiki.example.com/w/rest.php`). This is the URL where the OAuth2 endpoints are available.
    - **Client Key**: The client Key from step 2
    - **Client Secret**: The client secret from step 2
4. Log in with MediaWiki!

Links
-----

[](#links)

- [Packagist](https://packagist.org/packages/songnguxyz/oauth-mediawiki)
- [GitHub](https://github.com/songnguxyz/flarum-ext-oauth-mediawiki)
- [MediaWiki OAuth Documentation](https://www.mediawiki.org/wiki/OAuth/For_Developers)
- [Help translate the extension!](https://hosted.weblate.org/projects/flarum-ext-oauth-mediawiki/)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance75

Regular maintenance activity

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

5

Last Release

155d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ac5e3532eb6bb3f2feb51a9c821e1d0fc58fe16f58c93f1f1da4345de549b2e?d=identicon)[songnguxyz](/maintainers/songnguxyz)

---

Top Contributors

[![songnguxyz](https://avatars.githubusercontent.com/u/57829841?v=4)](https://github.com/songnguxyz "songnguxyz (16 commits)")[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (9 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (8 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (2 commits)")

---

Tags

mediawikiSSOoauthoauth2loginflarum

### Embed Badge

![Health badge](/badges/songnguxyz-oauth-mediawiki/health.svg)

```
[![Health](https://phpackages.com/badges/songnguxyz-oauth-mediawiki/health.svg)](https://phpackages.com/packages/songnguxyz-oauth-mediawiki)
```

###  Alternatives

[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[fof/passport

The OAuth2 (and Laravel passport) compatible oauth extension

3013.3k](/packages/fof-passport)

PHPackages © 2026

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