# Accessing one discourse via two different SSO backends

**URL:** <https://meta.discourse.org/t/accessing-one-discourse-via-two-different-sso-backends/118591>\
**Category:** SSO\
**Created:** [24 במאי,‏ 2019,‏ 7:16am UTC](https://meta.discourse.org/t/accessing-one-discourse-via-two-different-sso-backends/118591 "2019-05-24T07:16:59Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![theopen-institute](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/theopen-institute/32/141988_2.png) [@theopen-institute](https://meta.discourse.org/u/theopen-institute)\
**Post date:** [25 במאי,‏ 2019,‏ 2:34am UTC](https://meta.discourse.org/t/accessing-one-discourse-via-two-different-sso-backends/118591/11 "2019-05-25T02:34:52Z")

</div>

> [@Stephen](#):
>
> Discourse isn’t going to be the only case where you see this either - you’re going to need to come up with an approach to IdM for future service integration, better to do it now before you’ve incurred even more technical debt.

In our case, the goal is to keep identity management very separate everywhere _except_ discourse.

Our two user groups are just very different. The first group, identified authoritatively in our admin system, comprises employees and in-person students. This group will always be relatively small (hundreds), and all of the other service integrations we offer are available only to them. The second group lives entirely in Moodle. They’re relatively anonymous (enrolled in our open online courses), and they number in the tens of thousands. We’ve talked about implementing a unified LDAP or something similar, but keeping the mass of semi-anonymous accounts sequestered in Moodle actually works out pretty nicely for all other purposes.

Hearing both of you, I understand that the correct answer here is to just route everything through Moodle. From a user perspective, that’s not ideal, since it makes SSO require a second sign-in for some. But, especially if discourse can’t present under two distinct subdomains, I see why that’s the necessary approach.

In any case, thanks to both of you for the assistance! I’ll report back with whatever I figure out.

---

_[View the full topic](https://meta.discourse.org/t/accessing-one-discourse-via-two-different-sso-backends/118591)._
