Redirect after login one like logout redirect

AI-generated summary

naggar proposes a feature to redirect users to a custom domain after login, similar to the logout redirect feature. They suggest using a URL like https://meta.discourse.org/login?redirect_url=www.something.com to achieve this.

downey questions the purpose of redirecting users away from Discourse after login, to which naggar clarifies that the redirect would be temporary, allowing users to return to Discourse later. Mittineague expresses concerns about the counter-intuitive nature of this approach.

naggar reveals that their goal is similar to Single Sign-On (SSO), but using Discourse’s login mechanism. riking suggests that Discourse can serve “reverse SSO” to naggar’s site, which naggar confirms is what they are looking for.

How about feature like redirect after login the one like logout redirect.

Is there any way when i use URL https://meta.discourse.org/login?redirect_url=www.something.com for user login and as soon as user login he will redirect to custom provide domain in redirect_url query string.

Maybe I’m missing something. If you redirect someone to another site after they sign in, how will they ever use Discourse?

1 Mi Piace

@downey i mean which works only when i redirect user from other domain to discourse using URL: https://meta.discourse.org/login?redirect_url=www.something.com/page and as soon as user authenticate in discourse it will redirect them to www.something.com/page as in Query string value.

After that user can go back to Discourse any time through the link for it.

That seems a bit counter-intuitive
If I log in to the SitePoint forums and end up at SitePoint the site, despite there being an available link to the forum, that isn’t what I’d expect. It would feel more like a hijack of my log-in or that there was a bug.

Maybe you are more concerned about the SSO process?

Something Like SSO but i want to use discourse login mechanism.

Discourse can serve “reverse SSO” to your site, if that’s what you want?

Yes, where i can use discourse Login for SSO.