DiscourseConnect for MediaWiki

:warning: No longer maintained

Original Description

A MediaWiki extension that implemented DiscourseConnect consumer, allows your MediaWiki instance login with Discourse account, and more features are working in progress.

:warning: WARNING: It’s a crude extension that may have bugs that harm the security of your website.

GitHub - hawm/mediawiki-extensions-DiscourseConnect: A MediaWiki extension that implemented DiscourseConnect consumer, allows your MediaWiki instance login with Discourse account, and more features are working in progress.

6 个赞

Looks good!

A couple of years ago I had a go at a MediaWiki extension for pulling Discourse info into wiki pages: Extension:Discourse - MediaWiki

3 个赞

@freosam is it working well?

Any specific bugs to be aware of?

I’m afraid I’m not using either extension any more. There was an idea of Wikimedia using Discourse a while ago, which is why I was looking into it all, but that idea has passed now unfortunately.

Gotcha, did you have any success in connecting the two systems with some other authentication method?

Yep, just OAuth, although I’m not sure how much custom work there was to support it (I vaguely remember something about differing OAuth spec versions).

@hawm 非常感谢您的插件!

经过一些调整后,至少对于 1.35.0 版本,一切都运行良好:

  1. includes/DiscourseServices.php 需要 <?php 而不是 <?。因此,我在链接用户时遇到了错误:
    DiscourseConnect/maintenance/manageDiscourseUser.php: Class 'DiscourseConnect\\DiscourseServices' not found

  2. 我不得不在 includes/Service/DiscourseUserService.php 中将 DB_PRIMARY 替换为 DB_MASTER,以使插件正常工作。

希望这对大家有帮助 :slight_smile:

我很想看到您计划中的更多功能,例如替换 MediaWiki 的默认对话功能并填充电子邮件等其他字段。您有这方面的计划吗?

再次感谢您,并继续保持出色的工作!

由于该扩展的初始版本发布后,我不再对其进行维护,因为我意识到 MediaWiki 对我们的社区成员来说过于复杂,即使对我(作为 MediaWiki 实例维护者、扩展开发者和编辑)来说也是如此。

正如您所见,git 存储库已被我存档,现在是只读的,因此如果您仍需要它,请随时进行分叉(如有必要,请在 MIT 许可下)。

附注:我们社区驱动的 Wiki 最终切换回了 Discourse Wiki Post,并尝试通过 Discourse 插件/主题系统进行扩展。

2 个赞