Use the same user database and login credentials in multiple discourse instances

(Auryn Macmillan) #1

I know that it is possible to run multiple instances of discourse on the same server using a multisite setup. I’m wondering if it would be possible for multiple instances of discourse to make use of the same user database? So that a user could sign-up on any one of several different forums and use those same credentials to log in to all of the others. If a user’s whole profile (trust level, profile detail, pictures, etc) could be synced across each instance, this would be ideal for our use-case.

(Felix Freiberger) #2

You can set up single sign-on between both instances.

(Auryn Macmillan) #3

This would require us to use some 3rd party authentication correct? We’re quite happy with Discourse authentication, would it be possible to use Discourse’s Auth from one instance as SSO for the other instances?

(Jeff Atwood) #4

You would be using your own auth, from your master website.

(Do you not have a parent or master website people already log in to?)

(Auryn Macmillan) #5

No, the only portion of our website that requires auth is Discourse.

(Jeff Atwood) #6

Aha in that case one of them will have to be the master auth, I suppose. Any thoughts on this @sam?

(Sam Saffron) #7

Sure, Discourse can act as an SSO provider for another Discourse instance.

(Auryn Macmillan) #8

Awesome, is there any documentation that for setting something like this up?

(Sam Saffron) #9

Follow the breadcrumbs :bread:

(Jeff Atwood) #10

I still think this is gonna be weird since one of the Discourse sites – and how do you tell the user which one is the “right” one – will be the master auth site. There still needs to be an understandable hierarchy here of some kind.

(Auryn Macmillan) #11

I’ve just enabled it SSO on our test forum, using our main forum as the SSO provider. Even without explicitly stating the hierarchy (which may be necessary if we start implementing multiple instances) signing in seems pretty user friendly.