# 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:** 5

<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 7, 2018, 8:30am UTC](https://meta.discourse.org/t/using-multiple-discourse-sites-with-a-single-sso-provider/82311/5 "2018-03-07T08:30:12Z")

</div>

> [@codinghorror](#):
>
> Note that referer is dropped in many http to https cases and vice versa.

Yes, I did discover that in the research I did yesterday. We’re definitely sticking to HTTPS - HTTPS. I found a Mozilla blog article explaining why referer was a bad idea generally, which is partly what prompted me to ask for ideas about how to solve this without that dependency.

> [@mpalmer](#):
>
> Surely the more logical extension would be to allow an exactly\_these\_groups parameter, so you don’t have to fiddle around with add\_groups and remove\_groups?

The problem is that there isn’t a 1:1 match between Discourse groups and LDAP groups in our infrastructure. We only have a few Discourse groups and I didn’t want to hard-code those into the SSO provider - I wanted the SSO code to query Discourse to get the group names, hence the need for the Discourse URL.

> [@simon](#):
>
> I’ve run into similar issues with WordPress multisite and SSO. This isn’t implemented in the WordPress plugin, but you could try adding a query parameter to the sso\_url that you set on Discourse. It could be used to determine which forum the request has come from.

A brilliantly simple solution! Thank you.

---

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