Log In With MediaWiki
songnguxyz/oauth-mediawiki
Log in to your Flarum forum with MediaWiki OAuth2
- Downloads
- 11
- Version control
- github.com/songnguxyz/flarum-ext-oauth-mediawiki
Log In With MediaWiki
Log in to your Flarum forum with MediaWiki OAuth2. An addon for FoF OAuth.
This extension enables users to authenticate with any MediaWiki installation that supports OAuth2 (MediaWiki 1.35+, with the OAuth extension installed).
Installation
Install with composer:
composer require songnguxyz/oauth-mediawiki
Updating
composer update songnguxyz/oauth-mediawiki
Setup
-
Enable the OAuth extension on your MediaWiki installation. See MediaWiki OAuth documentation for details.
-
Register an OAuth2 consumer on your MediaWiki:
- Go to
Special:OAuthConsumerRegistration/proposeon 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-authonlyfor authentication) - Note down the Client Key and Client Secret provided
- Go to
-
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
-
MediaWiki Base URL: Your MediaWiki REST API base URL (e.g.,
-
Log in with MediaWiki!
Links
Versions
-
Version v1.1.2.
Likely works with Flarum v1.8.11.
Unlikely to work with Flarum v2.0.0-beta.4.
-
17 additional versions.
-
Extension created.