In order to improve the user experience when moving between our main site and discourse, we are considering detecting how the user has logged into our main site and customizing the link to the community site to initiate a login using the relevant SSO provider (Google and Github, so far).
I couldn’t find any evidence of a suitable URL which automatically triggers said login process. Is this feasible to add (or did I miss it already being there)?
Ideally it would recognise which identity was used at the original site and pass that along to prevent the account chooser from appearing (this applies to Google, but probably not Github) but that would be the icing on the cake.
The user visits our main site. They may choose to log in with google accounts, github accounts or internal accounts specific to our site. They might also choose not to log in.
They then choose to visit our discourse instance via a link on our main site.
if they are logged in with an external SSO provider the link on our site should point to a link on discourse which automatically initiates the SSO login sequence with the same provider, if they are not already logged into discourse.
Otherwise, they are sent to the main discourse page, and can log in manually if they choose.