On my site, lets say example.com, I have a link to my discourse site with a sso payload. For example discourse.com/session/sso_provider?sso=afjakfj&sig=sdjfsdkfj. After the user clicks this link, If the user is not logged on to Discourse, the user is redirected to the discourse.com/login. But here I want to redirect the user in another page is it possible?
Why do you need to do this? The point of login is to … log in…
Or just implement proper SSO per the topic in the howto category here.
This is almost certainly wrong… Link them to
/session/sso to kick it off. Or just
/login which redirects anonymous users there.