SSO Login with Discourse

I have gone through the Discourse Connect SSO article(DiscourseConnect - Official Single-Sign-On for Discourse (sso)).

My understanding of this is that, we can let discourse use our API to validate the authentication and can send some custom parameters too. Correct me if I am wrong.

What we want is, we want to use our own login page(When users click on login in…com, our login page “…com” should be opening up.) And once login is successful,it should goto discourse site. We saw couple of sites like twitter or atlassian etc. doing the same. Can you please help us with more details on how the same can be achieved.

That is correct if by “use our API” you mean “We will modify our API to support Discourse connect”. The details of how you do that are in the documents you linked. If you want everyone to be redirected immediately rather than seeing anything on your forum you’ll need to turn on the “login required” site setting.