Fire SSO Login to discourse onLogIn on external site

You might be able to use the approach outlined here: Creating pre-filled personal message links. I haven’t tried using it with the return_path set to compose a prefilled PM, but I think it could be made to work.