# Discourse SSO module for SimpleSAMLphp

**URL:** https://meta.discourse.org/t/discourse-sso-module-for-simplesamlphp/109949
**Category:** SSO
**Created:** [2월 24, 2019, 2:23오후 UTC](https://meta.discourse.org/t/discourse-sso-module-for-simplesamlphp/109949 "2019-02-24T14:23:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![reswild](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/reswild/32/132236_2.png) [@reswild](https://meta.discourse.org/u/reswild)
#### Post date: [2월 24, 2019, 2:23오후 UTC](https://meta.discourse.org/t/discourse-sso-module-for-simplesamlphp/109949/1 "2019-02-24T14:23:24Z")

</div>

Hi everyone,

I’ve put together a SimpleSAMLphp module for connecting to [Discourse SSO](https://meta.discourse.org/t/13045?silent=true): [GitHub - reswild/discourse: Discourse SSO module for SimpleSAMLphp · GitHub](https://github.com/reswild/discourse)

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/](https://simplesamlphp.org/).

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

---

<div class="post-metadata">

### Author: ![paulrbr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrbr/32/190056_2.png) [@paulrbr](https://meta.discourse.org/u/paulrbr)
#### Post date: [8월 8, 2020, 11:45오전 UTC](https://meta.discourse.org/t/discourse-sso-module-for-simplesamlphp/109949/2 "2020-08-08T11:45:46Z")

</div>

안녕하세요 @reswild,

공유해 주셔서 감사합니다! SSO 설정은 처음 해 보는데, SimpleSAML 모듈이 아주 유용해 보입니다. 다만 몇 가지 질문이 있습니다.

- SimpleSAML 모듈은 Discourse를 \*\*서비스 제공자(SP)\*\*로 사용하도록 만들어졌나요? (즉, SimpleSAML 사용자가 Discourse에 **자동으로** 로그인할 수 있도록 하는 것)
- SimpleSAML 모듈은 Discourse를 \*\*신원 제공자(IdP)\*\*로 사용하도록 만들어졌나요? (즉, SimpleSAML이 사용자 인증을 Discourse 애플리케이션으로 위임하는 것)

문서를 살펴본 결과, Discourse를 SP(서비스 제공자)로 사용하기 위한 모듈인 것 같습니다. SimpleSAML이 Discourse를 IdP(신원 제공자)로 사용하도록 설정하는 방법에 대해 혹시 아시는 점이 있을까요?

도움 주시면 감사하겠습니다!

---

<div class="post-metadata">

### Author: ![paulrbr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrbr/32/190056_2.png) [@paulrbr](https://meta.discourse.org/u/paulrbr)
#### Post date: [9월 29, 2020, 9:45오후 UTC](https://meta.discourse.org/t/discourse-sso-module-for-simplesamlphp/109949/3 "2020-09-29T21:45:06Z")

</div>

내가 직접 질문을 답하겠습니다:

- @reswild 님의 모듈은 Discourse를 \*\*서비스 제공자(Service Provider)\*\*로 사용할 수 있게 해줍니다. (SimpleSAML에 인증된 상태라면 자동으로 Discourse에 로그인할 수 있음)
- 제가 새로 작성한 인증 모듈입니다. 이 모듈은 Discourse를 \*\*신원 제공자(Identity Provider)\*\*로 사용할 수 있게 해줍니다. (Discourse 계정으로 SimpleSAML에서 인증하고, 이를 통해 **다른 서비스 SP** 에서도 자동으로 인증): [GitHub - swcc/simplesamlphp-module-authdiscourse · GitHub](https://github.com/swcc/simplesamlphp-module-authdiscourse)

다른 분들께 도움이 되기를 바랍니다 👋
