Remote login from main domain to subdomain

Hi i’ve got a site. (discourse) and (main site)
When a user signs up to my main site I’d like to log him into discourse on my sub domain. Is there a URL I should redirect him to that can automatically log him into discourse and then bounce him back to my main site? Similar to the way udacity does it.


This can be achieved if you set up a login flow with SSO. I don’t have a good reference in hand but this happens from the SSO provider’s side where they log you in to all connected applications using some kind of URL redirect.
As you could see this is purely based off their SSO.


Does your main site run WordPress? If so, the wp-discourse plugin will solve your problem. If it’s something else, you’ll likely need to do some work to get SSO working.