SimpleSAMLphp 的 Discourse SSO 模块

Hi everyone,

I’ve put together a SimpleSAMLphp module for connecting to Discourse SSO: GitHub - reswild/discourse: Discourse SSO module for SimpleSAMLphp

The code that does all the work is taken from cviebrock/discourse-php, so all I did was hook this up to a SimpleSAML authentication source. I haven’t tested it too much so far, but in theory it should work with any authentication source supported by SimpleSAMLphp, so SAML, Shibboleth, CAS, OpenID, OAuth, and many others. For more information, see https://simplesamlphp.org/.

This is the first SimpleSAMLphp module I’ve written, so any comments or suggestions are welcome.

4 个赞

你好 @reswild

感谢分享!我刚开始设置 SSO,发现了你的 SimpleSAML 模块,看起来非常棒。不过我有一些问题。

  • 你的 SimpleSAML 模块是否旨在将 Discourse 用作服务提供商(即允许 SimpleSAML 用户自动登录到 Discourse)?
  • 你的 SimpleSAML 模块是否旨在将 Discourse 用作身份提供商(即允许 SimpleSAML 将用户身份验证委托给 Discourse 应用程序)?

根据你的文档,我认为这是一个将 Discourse 用作 SP(服务提供商)的模块。你是否知道如何设置 SimpleSAML,使其将 Discourse 用作 IP(身份提供商)?

非常感谢你的帮助!

我将自己回答自己的问题:

  • @reswild 的模块使 Discourse 能够作为服务提供商使用(如果 SimpleSAML 用户已通过身份验证,则允许他们自动登录 Discourse)
  • 这是我新编写的一个认证模块,用于使 Discourse 能够作为身份提供商使用(使用 Discourse 账户在 SimpleSAML 中进行身份验证,从而在其他服务提供商 SP上自动认证):GitHub - swcc/simplesamlphp-module-authdiscourse · GitHub

希望这对其他人有所帮助 :waving_hand: