Can Discourse be used as an OAuth provider?


#1

Can Discourse function as an oAuth provider for a system like Rocket.Chat? I’m still trying to figure out what the difference is between oAuth, SSO, and what all the terminology means. Basically, we need Discourse to host the user database, and another chat system (maybe Rocket.Chat, maybe something else) to patch into that database for authentication purposes.

Not really sure what values would need to go where on Rocket.Chat’s end for testing purposes:

Apologies for my ignorance. This is all new to me. I was trying to follow some of the instructions in other threads, but wasn’t getting very far because they were addressing slightly different situations.


Using Discourse as a SSO provider
(Erick Guan) #2

OAuth provider is a completely different thing. It’s not supported. And OAuth provider is rather complicated which takes a lot of effort to build.


#3

Gotcha. Thank you very much.


(Erlend Sogge Heggen) #4

And just to clarify, what you want to do here is entirely doable. You’d probably want to:

  • Use Discourse as an SSO provider and hook that up with Rocket.Chat’s login.
  • Enable standard OAuth login providers like Google and Facebook for Discourse logins so that users could register/login using those standard services.

(Auryn Macmillan) #5

I’m really keen to set this up also. I familiar and comfortable with setting up discourse as an SSO provider, but no idea how to get rocket.chat to use it. A little out of scope for you I know, but any idea? I’ve had a pretty good google and look through the Rocket.Chat docs, but can’t seem to find it. My guess is I just don’t quite know the right thing to be looking for.


(Louis Rossouw) #6

Would also like rocket.chat using discourse as SSO provider.


(Michael Downey) #7

Just a bump to suggest the value of using Discourse user management as a community’s single user identity hub. And the easiest, most standard way for others to tap into that is to use Discourse as an oAuth provider (IMHO).