Simplest way to send user ID and username to an external site? Is SSO overkill for this?

(AstonJ) #1

I’ll be running a competition on an external (Rails) site which just needs the Discourse user’s ID and their username - it should work something like this:

  • They are logged into the Discourse forum
  • They click a link that goes to the external site
  • They get logged in automatically

Ideally they don’t have to ‘log-in’ or ‘authenticate’ again if they are already logged in to the Discourse forum.

Any suggestions on how to achieve this in the simplest way with Discourse?

Edit: Looks like David has done all the hard work in implementing SSO :smiley: