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 discourse/single_sign_on.rb at main · discourse/discourse · GitHub on your lib directory to do all the heavy lifting and then add the necessary controller and route.

5 Likes