Example code for how a hosted solution would integrate with discourse

Oh we have a fair bit of examples on that:

If your website uses Ruby and Rails, you can copy and paste the file https://github.com/discourse/discourse/blob/master/lib/single_sign_on.rb on your lib directory to do all the heavy lifting and then add the necessary controller and route.

5 Likes