# DiscourseConnect for MediaWiki

**URL:** https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281
**Category:** Extras
**Created:** [May 22, 2021, 4:03pm UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281 "2021-05-22T16:03:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [May 22, 2021, 4:03pm UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/1 "2021-05-22T16:03:18Z")

</div>

> ## ⚠ No longer maintained

> [@DiscourseConnect for MediaWiki](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/10):
>
> Some regrets, I’m no more working on this extension since the initial version was published cause I realized that the MediaWiki is too complicated for our community members, even to me(as a MediaWiki instance maintainer, extension developer, and editor). As you can see the git repository has been archived by me it is now read-only, so please feel free to fork it if you still need it(under MIT license if necessary). P.S. We community-powered Wiki finally switch back to [Discourse Wiki Post](https://meta.discourse.org/t/what-is-a-wiki-post/30801) and t…

> **Original Description**
>
> A MediaWiki extension that implemented [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) consumer, allows your MediaWiki instance login with Discourse account, and more features are working in progress.
> 
> ⚠ **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. · GitHub](https://github.com/hawm/mediawiki-extensions-DiscourseConnect)

---

<div class="post-metadata">

### Author: ![freosam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/freosam/32/223977_2.png) [@freosam](https://meta.discourse.org/u/freosam)
#### Post date: [June 12, 2021, 1:40am UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/2 "2021-06-12T01:40:38Z")

</div>

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](https://www.mediawiki.org/wiki/Extension:Discourse)

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [July 11, 2021, 6:54pm UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/4 "2021-07-11T18:54:35Z")

</div>

@freosam is it working well?

> [@hawm](#):
>
> It’s a crude extension that may have bugs that harm the security of your website.

Any specific bugs to be aware of?

---

<div class="post-metadata">

### Author: ![freosam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/freosam/32/223977_2.png) [@freosam](https://meta.discourse.org/u/freosam)
#### Post date: [July 12, 2021, 1:52am UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/5 "2021-07-12T01:52:49Z")

</div>

> [@sunjam](#):
>
> @freosam is it working well?

I’m afraid I’m not using either extension any more. There was [an idea](https://meta.wikimedia.org/wiki/Discourse) of Wikimedia using Discourse a while ago, which is why I was looking into it all, but that idea has passed now unfortunately.

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [July 12, 2021, 2:24am UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/6 "2021-07-12T02:24:08Z")

</div>

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

---

<div class="post-metadata">

### Author: ![freosam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/freosam/32/223977_2.png) [@freosam](https://meta.discourse.org/u/freosam)
#### Post date: [July 15, 2021, 1:29am UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/7 "2021-07-15T01:29:55Z")

</div>

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).

---

<div class="post-metadata">

### Author: ![sila](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sila](https://meta.discourse.org/u/sila)
#### Post date: [January 29, 2022, 5:26am UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/9 "2022-01-29T05:26:08Z")

</div>

@hawm thank you so much for this plugin!

Everything is working well after few tweaks, at least for 1.35.0:

1. includes/DiscourseServices.php required `<?php` instead of `<?`. Because of this, i got the error while linking users:  
`DiscourseConnect/maintenance/manageDiscourseUser.php: Class 'DiscourseConnect\DiscourseServices' not found`

2. i had to replace DB\_PRIMARY with DB\_MASTER in includes/Service/DiscourseUserService.php to make the plugin working.

I hope this helps someone 🙂

> [@hawm](#):
>
> and more features are working in progress.

I would love to see more features you’ve planned like replacing the default talk function of MediaWiki and populating other fields like email. Any plans for this?

Thanks again and keep up the good work!

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [January 29, 2022, 9:05am UTC](https://meta.discourse.org/t/discourseconnect-for-mediawiki/191281/10 "2022-01-29T09:05:54Z")

</div>

Some regrets, I’m no more working on this extension since the initial version was published cause I realized that the MediaWiki is too complicated for our community members, even to me(as a MediaWiki instance maintainer, extension developer, and editor).

As you can see the git repository has been archived by me it is now read-only, so please feel free to fork it if you still need it(under MIT license if necessary).

P.S. We community-powered Wiki finally switch back to [Discourse Wiki Post](https://meta.discourse.org/t/what-is-a-wiki-post/30801) and try to extend it via the Discourse Plugin/Theme system.
