Anyone has discovered/ build a site as multisite (SSO), would like to see the possibilities for inspiration!

Are you wanting to use DiscourseConnect for SSO? For example, from one identity provider site, authenticate users on multiple Discourse sites with DiscourseConnect? If so, I think it’s technically possible to do this but it’s not the intended use case for DiscourseConnect. The challenge will be to determine which Discourse site an SSO request has originated from. I think this can be done by adding a URL parameter to each Discourse site’s discourse connect url setting. For example:

  • https://example.com/sso?subdomain=foo
  • https://example.com/sso?subdomain=bar

The code on the identity provider site could then redirect SSO requests to the appropriate subdomains: foo.example.com or bar.example.com.

I’m aware of a site that implemented something like this in the past, but I’m not sure if they’re still using that approach.

1 Like