Use Discourse login for second Rails app


(James Cook) #1

I was wondering if any other members have experience of extending Discourse’s user management system to work with other apps i.e. let users who register on the forum, log in to another Rails app.

I’ve been thinking about building a website using Rails (that requires a log in) that also has a Discourse forum associated with it. It would make sense to keep them as separate apps to keep Discourse easily upgradable but was hoping I could get some opinions on how difficult this may be or if there might be a better solution.

Thanks :thumbsup:


(Jeff Atwood) #2

You can use Discourse as an authentication source, what is the right topic to point people to here @sam?


(Sam Saffron) #3

not sure if there is a canonical

but

https://meta.discourse.org/search?q=enable%20sso%20provider

finds a pile of them


(Jeff Atwood) #4

We should have an official howto article on using Discourse as a SSO provider. Can you add that to your list, @techapj?


(Arpit Jalan) #5

Okay, we now have a howto article for this: