I’ve very new to discourse and I was successfully able to setup an SSO for my app and discourse using the official discourse SSO.
One of my concerns is that if a user does decide to login to my application and then goes to discourse, the user won’t be logged in (which is how the SSO is intended to be). Even so, if the user decides to click on the login button on the discourse site, they’ll be redirected to the login page of the site that they are already logged into, which doesn’t work because that page is unavailable.
My question is that is it possible to be able to have the user login in the background? Is there some sort of function that I can call or an api call to my discourse instance to have it login the user, so when the user does eventually visit the discourse instance they are already logged in?
I essentially want to have the user login to discourse everytime they login on the main application. If there is some documentation for this, or how I should go about doing this, it would be great!
PS: Sorry if I put this in the wrong category.