Discourse 基于角色的权限管理在 Discord 上的应用

Hope I am in the correct category…Tried to search about that feature, but did not find anything.

I am woundering if there allready exists a discourse plugin which gives access roles on a specific discord server, based on discourse groups?
So for example:

  • a discourse user has the group gaming
  • this user want to access the forums discord server
  • so he can access via an invite link or other
  • gets to the discord server and automatically gets the role based on his discourse group
  • possibly when he deletes his account on discourse, roles on discord server gets revoked

Thanks for help and time.

2 个赞

This would be dependent on whether Discord can pull the groups out of the Discourse SSO response payload.

2 个赞

I am not a developer, so my knowledge is minimal on that stuff. I know a program called Alliance Auth which is doing exactly that what I was asking:

It handles the roles via a bot, but how that works I cannot say :slight_smile: So groups created in AllianceAuth also are being created on the discord server.

I know @Vocino did exactly this.

https://strats-bridge.herokuapp.com

5 个赞

Thx for the Information. Do you evetually know if he is sharing the codebase to the community?

Sorry for the late reply. Yes we are doing exactly this with a custom ruby app. It’s not really in any kind of state to be shared. It also has a bunch of other random features thrown in that are specific to our community.

@Vocino thx for your reply.

I know it’s an old thread, but this is something that we’d like to do with our discord server and forums. Googling anything related to this functionality keeps returning this thread as a top result :frowning:

Hey @Wedgebert,

I know this is on @erlend_sh roadmap. Maybe he have more details about this.

3 个赞

Would love to have a closer look at that :wink:

In related news, I’m looking for a developer who’d be interested on working on this as a paid gig. Anyone interested should PM me.

Any new update on if someone is working on this?

I saw a NodeJS bot by @Watercolor_Games which has this functionality, but it’s not plugin based. I have some concerns when using this for large Discord guilds. An event based Discourse plugin that updates Discord roles when a Discourse users trust level/group changed sounds much safer.

The one by @Watercolor_Games is currently in the process of being converted into a Discourse plugin. You’re probably best just waiting for that to finish.

1 个赞

Yeah, it’s being ported to a plugin. I’m part of the team for the port though it’s not likely I’ll be doing much actual programming - even though I will be trying to learn Ruby and how to write my own discourse plugins from being a part of this team.

I will say that we’re aiming for feature parity, everything that the node bot can do or was planned to do, the plugin will do as well.

2 个赞

That sounds wonderful! I’m guessing we should keep an eye out on the same repository of the NodeJS bot (different branch)?

I’m not entirely sure yet. We’ll keep you guys posted, though. :slight_smile:

我想在这个话题上插个嘴。

我正在将我的社区迁移到 Discourse,目前我们有一个 XenForo 插件可以实现这个功能。在新论坛中将其作为必备功能是我们必须的:slight_smile

关于开发进展有什么最新消息吗?

这仍然是一个计划中的功能吗?