# SSO de Discourse a Discourse

**URL:** https://meta.discourse.org/t/discourse-to-discourse-sso/88499
**Category:** Feature
**Created:** [26 Mayo, 2018 11:07 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499 "2018-05-26T11:07:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [26 Mayo, 2018 11:07 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/1 "2018-05-26T11:07:01Z")

</div>

I’ve been discussing this idea with one of my colleagues who also happens to be running a forum on discourse about the possibility to allow the users of one forum to sign in to the other forum without having to create a new account.

I couldn’t find anyone doing this so I wanted to ask if [discourse SSO](https://meta.discourse.org/t/13045?silent=true) is capable of allowing other discourse instances as a client?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [27 Mayo, 2018 06:18 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/2 "2018-05-27T06:18:23Z")

</div>

Yes, just enable “sso provider” on the “primary” forum that you expect everyone to have an account on.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [27 Mayo, 2018 06:22 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/3 "2018-05-27T06:22:06Z")

</div>

I had thought of that, I’ll give it a shot but It’s more like a mutual thing, We have separate user base on both forums, Will it be possible to sync users of all the secondary forum to the primary forum?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [27 Mayo, 2018 12:23 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/4 "2018-05-27T12:23:34Z")

</div>

The problem with SSO, as I think you’ve realized, is that it’s all it nothing. You’re likely better if just using social logins.

If you do want to have both sites share a single user database you’ll need to pull over the users. There’s not an easy way to do that that I am aware of. One solution might be to use category export /import, which would create the users (and then you’d hide or delete the imported categories). You’d need to know that everyone had posted at least once.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [27 Mayo, 2018 12:26 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/5 "2018-05-27T12:26:27Z")

</div>

So basically local logins can’t be synced to the SSO server?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [27 Mayo, 2018 12:32 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/6 "2018-05-27T12:32:54Z")

</div>

If you want server B to use server A as the SSO master, you’d need to create all of B’s users on A. I’m not aware of a script that does that.

There are a couple ways I could imagine doing it. If you’ve got a budget post in #Marketplace or see my contact info in my profile.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [27 Mayo, 2018 12:34 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/7 "2018-05-27T12:34:19Z")

</div>

I haven’t thought of a budget yet but I’d get in touch to discuss the possibilities…

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [27 Mayo, 2018 22:08 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/8 "2018-05-27T22:08:39Z")

</div>

> [@pfaffman](#):
>
> You’re likely better if just using social logins.

Would it be a crazy idea to offer [https://meta.discourse.org](https://meta.discourse.org) login as a social login for other Discourse instances (enabling this social login)? Imagine, a login for _all_ Discourse instances.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [28 Mayo, 2018 01:51 UTC](https://meta.discourse.org/t/discourse-to-discourse-sso/88499/9 "2018-05-28T01:51:59Z")

</div>

Take a look at the old #discourse\_hub topics: [Unique user names in Discourse Hub](https://meta.discourse.org/t/unique-user-names-in-discourse-hub/84354)
