How to login to discourse from external website

I’ve been trying to search through the support forums on how to allow users to login to discourse from my website
I came across SSO but I don’t think that’s exactly what I’m looking for (?)

Basically what I would like to do is to have a php form on my website where users can enter their username/password, and then this form will be submitted to the discourse site so when users press login they will automatically enter discourse without first having to see a discourse standalone login page.

How would I do this? Or any alternatives?

That is SSO, so you had the right idea.

1 Like

I would still like to use discourse authentication (no separate login/authentication database on my own website), just that the login button/field of discourse is embedded in my website. In this case (embedding discourse login in another website), would that still fall under SSO?

As I’m reading through the official discourse SSO documentation, it mentions that if SSO is to replace the original discourse authentication.

Then you want oAuth 2

1 Like

For reference

2 Likes