Discourse SSO 通过 SimpleSAMLphp 认证模块 (IdP)

Hi :wave:, I wrote this SimpleSAMLphp authentication module to be able to use Discourse as an SSO provider within a SimpleSAMLphp installation. I.e. you can use Discourse as an SSO provider for any services that supports SAML or Shibboleth authentication, which is really nice.

https://github.com/swcc/simplesamlphp-module-authdiscourse

Let me know what you think (if interested to comment on the code you can use Github Issues) :slightly_smiling_face:

6 个赞

@paulrbr , any chance you could help me get this thing installed? Composer is killing me. First time I’ve ever tried to use it. I’ve got simplesamlphp installed just fine and I’ve been able to install other modules using composer, but for the life of me I can’t get this one to go.

I keep getting:
[InvalidArgumentException]
Could not find a matching version of package swcc/simplesamlphp-module-authdiscourse. Check the package spelling, your version constraint and that the pa
ckage is available in a stability which matches your minimum-stability (stable).

Looking forward to giving this a try. My goal is to use it to bridge my rocket chat server to discourse.

I’ve gotten much further, but now I’m stuck at the config.php and authsources.php. I’ve made setting changes in config.php that were necessary for the install itself. I also enabled the module inside the config.php.

I’m really at a loss for exactly what to do in the authsources.php file to fully configure this.

@paulrbr Any chance you can show an example?

Hi @ninermac,

Thanks for trying out this module!

Sorry about the confusion with usingit with composer, I had forgot to publish the package on packagist.org that is why you had difficulties to fetch it I guess. I fixed that and the module is now available:

https://packagist.org/packages/swcc/simplesamlphp-module-authdiscourse

About the authsources.php simplesamlphp configuration example, I added an concrete example in the README of the module:

https://github.com/swcc/simplesamlphp-module-authdiscourse#using-the-discourse-authentication-source-with-simplesamlphp

I hope it helps, let me know if you managed to use it. Thanks!

Thanks. I’ll give it a shot. Yeah, I had to play around with my composer setup for a while before I could get it to pull from GitHub.

感谢您的模块!我写了一份配置指南,以便人们知道如何配置 SimpleSAMLphp 和您的模块。感谢您的贡献!

4 个赞

我真的很感激,我两天前看了这个,觉得它很有用,但我甚至不知道如何开始,哈哈。我现在正在阅读它。:slight_smile:

2 个赞

@paulrbr
感谢您的工作。您能确认这在 simpleSAMLphp 的当前版本中不再有效了吗?或者是我配置有问题?谢谢!