Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73751

Redirecting to Base URL Rather than Original Requested URL After Okta Login

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • saml-plugin
    • None
    • Jenkins 2.470
      SAML Plugin 4.464.vea_cb_75d7f5e0

      We are using saml-plugin on our Jenkins instances to handle logins using Okta.  After the logins complete successfully we are expecting to be redirected back to the original requested URL however after a successful login Jenkins will redirect us to the base url.  

       

      I was originally thinking this SamlSecurityRealm.calculateSafeRedirect() check might be failing and defaulting to the base url, however with Fine logging turned on I was able to see that redirectURL is being set to the "from" string.

       

      I still think this is possibly a misconfiguration on our end.  Logins work, but will always redirect to the base url.  Any ideas for troubleshooting assistance?

       

      Thanks!

          [JENKINS-73751] Redirecting to Base URL Rather than Original Requested URL After Okta Login

          Kevin added a comment -

          Determined the set-cookie was being blocked due to samesite setting.  Closing ticket.

          Kevin added a comment - Determined the set-cookie was being blocked due to samesite setting.  Closing ticket.

          Could you please give a little more details about how you resolved it? Commenting on this PR is enough for future users. Thank you for reporting it.

          Ivan Fernandez Calvo added a comment - Could you please give a little more details about how you resolved it? Commenting on this  PR is enough for future users. Thank you for reporting it.

            ifernandezcalvo Ivan Fernandez Calvo
            kevin_springsteen Kevin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: