Create user in discourse by redirecting from another site

I already have a website say We have a lot of users already registered on it. We allow users to signup on using google/facebook/email.

I want a user to get registered on discourse when he registers on Since we are not asking any password from user, how do I register the user on discourse as its registration requires password.

You’d want to make an SSO provider, and then use it to log in to Discourse — Official Single-Sign-On for Discourse (sso)

How to do this would vary based on what you’re using to manage logins for