# Usando múltiplos sites Discourse com um único provedor SSO

**URL:** <https://meta.discourse.org/t/using-multiple-discourse-sites-with-a-single-sso-provider/82311>\
**Category:** SSO\
**Created:** [Março 6, 2018, 2:23pm UTC](https://meta.discourse.org/t/using-multiple-discourse-sites-with-a-single-sso-provider/82311 "2018-03-06T14:23:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Philip\_Colmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_colmer/32/120245_2.png) [@Philip\_Colmer](https://meta.discourse.org/u/Philip_Colmer)\
**Post date:** [Março 6, 2018, 2:23pm UTC](https://meta.discourse.org/t/using-multiple-discourse-sites-with-a-single-sso-provider/82311/1 "2018-03-06T14:23:13Z")

</div>

We’re using an in-house SSO provider which authenticates against LDAP. We’ve extended the core functionality so that, when the user authenticates, the provider retrieves a list of groups from Discourse and then populates the add\_groups and remove\_groups based on that list of groups combined with group membership in LDAP.

In order for that to work with multiple Discourse sites, the SSO provider needs to know the URL of the Discourse site that is requesting the authentication.

I did have this working by retrieving the HTTP\_REFERER value but the referer field is no longer being populated for some reason. As a result, I’m now have to run two SSO providers running identical code.

I don’t think that Discourse provides the site URL when calling the SSO provider, and I can’t think of another way for the SSO provider to get the site URL if referer isn’t being populated.

Would it be possible to extend the [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) specification so that the site URL **is** provided to the SSO provider?

---

_[View the full topic](https://meta.discourse.org/t/using-multiple-discourse-sites-with-a-single-sso-provider/82311)._
