songnguxyz/oauth-mediawiki 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

songnguxyz/oauth-mediawiki

最新稳定版本:v1.3

Composer 安装命令:

composer require songnguxyz/oauth-mediawiki

包简介

Log in to your Flarum forum with MediaWiki OAuth2

README 文档

README

Log In With MediaWiki License Latest Stable Version Total Downloads

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
php flarum migrate
php flarum cache:clear

Updating

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

Setup

  1. Enable the OAuth extension on your MediaWiki installation. See MediaWiki OAuth documentation 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

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-06