• Resolved bbence84

    (@bbence84)


    First of all, thanks a lot for this awesome plugin! It works like a charm. There’s one thing that does not seem to work however: the redirect after login. Maybe some of my installed plugins, e.g. RegistrationMagic is interfering, although I doubt, since even after disabling these, redirect does not work. What I mean is that if I type in the URL for my Freshdesk page, it correctly redirects to the WordPress login page, and in the url I’m seeing the correct redirect path (the Freshdesk URL). However after logging in, it redirects to either the default WP page (the user profile, if other plugins are disabled) or the one that I have configured in RegistrationMagic if that plugin is enabled.
    If I am already logged in and enter the same login redirect URL (https://blabla.com/wp-login.php?action=fd-remote-login&host_url=blabla.freshdesk.com) in the address bar, it then now redirects to the freshdesk page. So it seems that the first login does not “register” the login correctly in the plugin. Any ideas? Thanks a lot! Bence

Viewing 5 replies - 1 through 5 (of 5 total)
  • Vrunda

    (@vrundakansara-1)

    Hi,

    The FreshDesk SSO redirects to the cached page. Let’s say if you hit a ticket page (while not logged in), it will redirect to the SSO created website login, in your case https://blabla.com/ login page. After logging in, it will redirect back to the original ticket page.

    This is what is the desired and expected output in FreshDesk SSO.

    I am not sure if I understood your exact issue. Do you mind sharing few screenshots or so?

    Looking forward to resolve this issue ASAP.

    Regards,
    Vrunda Kansara

    Thread Starter bbence84

    (@bbence84)

    Sorry that I have not made myself clear. Here is a step by step description on what is happening:

    1. User is not logged in yet either to freshdesk (there actually signup is disabled) nor to wordpress. Open the freshdesk main page, e.g: https://blabla.freshdesk.com
    2. Freshdesk correctly redirects to the WP login page with the following URL:
    https://blabla.com/wp-login.php?action=fd-remote-login&host_url=blabla.freshdesk.com
    3. I can login just fine but after login, something (WP Freshdesk plugin? or another WP plugin?) redirects to:
    a. IF RegistrationMagic plugin is disabled — redirects to the default WordPress profile page
    b. IF RegistrationMagic plugin is enabled — redirects to the page configured in RegistrationMagic
    4. If the user is already logged in to WordPress and I reopen the above login page URL, then it redirects correctly to the /support/home page of the Freshdesk URL. So it seems that if the user is logged in already, redirect happens, but if the user is just logging in, it does not work.

    I don’t have any other plugins installed that could interfere here.

    Thanks!

    Vrunda

    (@vrundakansara-1)

    Hey!

    Thank you for such a detailed explanation. I totally get your point.

    Did you check if the user you are trying to log in from blabla.com is also present at blabla.freshdesk.com ?

    The logic goes like this – User with “xyz” login views his ticket list on your website using the shortcode. If he wants to see the ticket details on FreskDesk forum he will click on the ticket and will be logged in there using SSO with SAME user as “xyz”. So here he doesn’t have to log in to FreshDesk again.

    Let me know.
    Looking forward to resolving this.

    Regards,
    Vrunda Kansara

    Thread Starter bbence84

    (@bbence84)

    Hm, I thought that if you open the main freshdesk page, it should automatically redirect to the WP login page, and then after logging in, back to the freshdesk page. Shouldn’t it work like this?

    I disabled signup on the freshdesk page, I was hoping that using the WP user database, my existing WP users can authenticate on the freshdesk site without having to sign up also there.

    Vrunda

    (@vrundakansara-1)

    Hey,

    If the user has tickets opened on FreshDesk, he will definitely have an account at FreshDesk. So this case scenario is invalid.

    In your case, you might be trying to reproduce the scenario as an admin login, right?

    The SSO in FreshDesk is simply responsible for Single Sign In, which means if he is logged in at blabla.com he doesn’t have to log in to blabla.freshdesk.com. Both these instances will work hand in hand in terms of logging in and not signing up.

    I hope this clarifies your doubt. Feel free to get back if you face any other issues.

    Regards,
    Vrunda Kansara

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect does not seem to work’ is closed to new replies.