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

AI-generated summary

The user Bluer is seeking a solution to authenticate WordPress and Discourse users into a chat platform like IRC, Slack, or Discord, with a preference for IRC. They initially considered setting up InspIRCd with Anope for database-based authentication but were advised by erlend_sh that Slack and Discord support OAuth2, though they wanted Discourse to act as the SSO provider. pfaffman suggested the Babble plugin, but Bluer preferred a traditional IRC setup. LeoMcA proposed a solution using a custom user field for an IRC key and an API-connected bot to grant channel access. Bluer later explored Rocket.Chat, a self-hosted open-source chat platform with OAuth and API support, and successfully integrated WordPress users into Rocket.Chat using Discourse as the SSO provider details.

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

Inspircd with Anope would be a pretty straight forward solution as Anope has a mysql_authentication module.

1 « J'aime »

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

Bear in mind we already have a Slack Login plugin:

https://meta.discourse.org/t/slack-login-plugin/29142

And Discord also supports OAuth2, so making a plugin for it should be doable with your budget.

4 « J'aime »

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

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

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.

3 « J'aime »

Have you seen the babble plugin?

@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

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
3 « J'aime »

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.

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

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

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

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

2 « J'aime »

I was able to succesfully authenticate wordpress users into Rocket Chat (with WP as SSO provider for discourse). See details here i posted as Bluer-RC user.

:tada:

4 « J'aime »

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