• Resolved sravanampb

    (@sravanampb)


    Hi,

    I am a little new to the wordpress ecosystem. I need to redirect the user to an external link with format https://<domain>/<any-url&gt;?ssoToken=<jwt-token> after he successfully logs in on the login page. Can you please help me in achieving this?
    Also there are two more usecases wherein he is signed up on both platforms if he doesn’t have an account already and logged out too when he logs out of one.

Viewing 1 replies (of 1 total)
  • Plugin Author nicu_m

    (@nicu_m)

    Hello @sravanampb,

    You can redirect to a custom page. Here is the documentation link:
    https://simplejwtlogin.com/docs/autologin#redirect

    Currently, there is no variable that you can use, in order to send the JWT, but you can use the “Include request parameters used for login link in the REDIRECT URL” feature, and add the ssoToken parameter to your autologin URL,and it should work.

    For example:
    https://yourdomain.com/?rest_route=/simple-jwt-login/v1/autologin&JWT={JWT}&ssoToken={JWT}&redirectUrl=https://<domain>/<any-url>

    Where JWT should be replaced with your actual JWT value.

    This will append the ssoToken parameter to the redirectUrl that you specified in the query params.

    Let me know if this works for you.

    Best regards,
    Nicu.

Viewing 1 replies (of 1 total)
  • The topic ‘Achieving Redirect to external site after login on wordpress.’ is closed to new replies.