After successful login, how do I redirect to my Discourse URL with logged in state (SSO)?

Thanks, @simon. Very helpful! I will try this out. Appreciate it.