# \[Paid\] WP + Discourse user authentication for IRC or other chat

**URL:** https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439
**Category:** Marketplace
**Created:** [2017 年4 月 22 日 14:03 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439 "2017-04-22T14:03:39Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年4 月 22 日 14:03 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/1 "2017-04-22T14:03:39Z")

</div>

**What would you like done?**  
My Ubuntu 16.04 server has wordpress and discourse installed (wp-discourse & SSO) alongside vestacp/nginx and i need some way for the users to authenticate with a chat (IRC, slack or discord) so only they get access. I would prefer IRC and this might require installation of ircd like InspIRCd with Anope services but it might also be possible to use a free IRC network like [rizon.net](http://rizon.net) if the authentication can be done with a bot alone.

For example in some websites users can set irckey in their account settings and then authenticate with a bot to get access: /msg Botname enter #channel username irckey

**When do you need it done?**  
Within 2 weeks.

**What is your budget, in $ USD that you can offer for this task?**  
100-200$ depending on how easy the solution will be.

**Solved** (10-5-2017):

> [@\[Paid\] WP + Discourse user authentication for IRC or other chat](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/14):
>
> I was able to succesfully authenticate wordpress users into Rocket Chat (with WP as SSO provider for discourse). [See details here](https://github.com/RocketChat/Rocket.Chat/issues/2815#issuecomment-300560656) i posted as Bluer-RC user. tada

---

<div class="post-metadata">

### Author: ![ColdSun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/coldsun/32/66668_2.png) [@ColdSun](https://meta.discourse.org/u/ColdSun)
#### Post date: [2017 年4 月 22 日 16:54 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/2 "2017-04-22T16:54:42Z")

</div>

Inspircd with Anope would be a pretty straight forward solution as Anope has a mysql\_authentication module.

---

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年4 月 22 日 17:15 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/3 "2017-04-22T17:15:52Z")

</div>

Interesting i think yes it is some kind of database setup, if someone can do it let me know.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2017 年4 月 22 日 20:58 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/4 "2017-04-22T20:58:08Z")

</div>

Bear in mind we already have a Slack Login plugin:

[https://meta.discourse.org/t/slack-login-plugin/29142](https://meta.discourse.org/t/slack-login-plugin/29142)

And [Discord also supports OAuth2](https://discordapp.com/developers/docs/topics/oauth2), so making a plugin for it should be doable with your budget.

---

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年4 月 23 日 04:50 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/5 "2017-04-23T04:50:42Z")

</div>

@erlend_sh doesn’t that require users to register an account for slack in their site? I would prefer registering in my site/forum and then authenticating into a chat.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2017 年4 月 23 日 15:00 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/6 "2017-04-23T15:00:39Z")

</div>

Ah, you want Discourse to be the parent SSO provider:

> [@Use Discourse as an identity provider (SSO, DiscourseConnect)](https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974):
>
> So you want to use Discourse as an identity provider for your own web app? Great! Let’s get started. Enable [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider setting Under Discourse admin site settings (/admin/site\_settings) enable setting enable discourse connect provider and add a secret string to discourse connect provider secrets (used to hash SSO payloads). Implement [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) in your web app: Generate a random [nonce](https://en.wikipedia.org/wiki/Cryptographic_nonce). Let’s call this value NONCE. Save it temporarily so that you can verify it with the …

Yeah, in that case OAuth2 plugins like that Slack plugin don’t matter. And an open source solution like IRC or Mattermost would surely be easier to work with than proprietary chat software, as they’re unlikely to let another application act as the SSO authority. That’s commonly an Enterprise feature.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017 年4 月 23 日 15:02 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/7 "2017-04-23T15:02:09Z")

</div>

Have you seen the babble plugin?

---

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年4 月 23 日 17:11 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/8 "2017-04-23T17:11:48Z")

</div>

@erlend_sh yeah registering should happen in wordpress or discourse side.  
@pfaffman yes but it’s not what im looking for, need a proper chat like IRC.

I can definitely pay the full price if ircd is installed. This seems to be another module on InspIRCd side that could be used: [https://wiki.inspircd.org/Modules/2.0/sqlauth](https://wiki.inspircd.org/Modules/2.0/sqlauth)

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [2017 年4 月 24 日 10:00 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/9 "2017-04-24T10:00:53Z")

</div>

> [@Bluer](#):
>
> For example in some websites users can set irckey in their account settings and then authenticate with a bot to get access: /msg Botname enter #channel username irckey

Replicating this seems like the most straightforward solution:

- Add a custom field to a user’s profile which can be accessed via the API, for the IRC key
  - You’d maybe want a plugin to ensure random keys are created

- Create an IRC bot, which queries the API, and if the key matches, invites the user to a private channel

---

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年4 月 24 日 18:26 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/10 "2017-04-24T18:26:36Z")

</div>

Yes i think it is something like that, plugin to create random keys is not a must though if the field can be blank and filled after.

---

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年4 月 25 日 13:19 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/11 "2017-04-25T13:19:15Z")

</div>

[https://rocket.chat](https://rocket.chat) could be used maybe? (open source chat with OAuth and API support)

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [2017 年4 月 25 日 13:23 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/12 "2017-04-25T13:23:24Z")

</div>

Possibly. You’ll have to pose that question to them.

---

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年4 月 29 日 20:22 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/13 "2017-04-29T20:22:41Z")

</div>

I contacted a bunch of people and no one responded, but i may have found a way to integrate rocket chat:  
[https://github.com/RocketChat/Rocket.Chat/issues/747#issuecomment-142759930](https://github.com/RocketChat/Rocket.Chat/issues/747#issuecomment-142759930)

Will try it with wordpress as the SSO provider for discourse and report back…

---

<div class="post-metadata">

### Author: ![Bluer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bluer/32/70302_2.png) [@Bluer](https://meta.discourse.org/u/Bluer)
#### Post date: [2017 年5 月 11 日 01:02 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/14 "2017-05-11T01:02:22Z")

</div>

I was able to succesfully authenticate wordpress users into Rocket Chat (with WP as SSO provider for discourse). [See details here](https://github.com/RocketChat/Rocket.Chat/issues/2815#issuecomment-300560656) i posted as Bluer-RC user.

🎉

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2017 年6 月 10 日 01:08 UTC](https://meta.discourse.org/t/paid-wp-discourse-user-authentication-for-irc-or-other-chat/61439/15 "2017-06-10T01:08:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
