What is the procedure to obtain CAS between my website and my discourse instance?

@riking, I tried those link but they work only if you have already login into your discourse account if you have not already login into your account it shows the message “The page you requested doesn’t exist or is private”. I want to login into my discourse account directly with a link on my website irrespective of if the user is already login or not.