I use Discourse as a SSO
consumer provider, meaning Discourse is the source of truth.
When I redirect my users to the SSO link:
- If login is successful, they are redirected back to the return_url parameter, as expected.
- If they close the login modal (or the account creation modal), they stay on the forum page and never get back to my web site.