-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins Enterprise 2.46.2.1-rolling
kerberos-sso-plugin 1.3
Jenkins Master: RHEL 6.9
java version "1.8.0_111"
Apache reverse proxy with context path /jenkins
Chrome 58
-
-
1.5
My Jenkins server lives behind a /jenkins context path and reverse proxy through Apache and when the login request finishes it redirects back to an extra /jenkins when it logs in via Kerberos. This only started after we enabled the kerberos-sso plugin.
Chrome Dev tools login request/response:
Request URL:
https://<host>/jenkins/login?from=%2Fjenkins%2FRequest Method:
GETStatus Code:
302 FoundResponse Location:
https://<host>/jenkins/jenkins/
If I then navigate back to the proper location, I've been successfully logged in.
I worked around this by using the 1.2 version of the kerberos-sso-plugin but I've realized it isn't completely working since it logs me in and redirects to the context root. This means if Jenkins drops my session when I'm looking at a subfolder, if I refresh the page it redirects that page back to the context root. I'm guessing that was what was fixed in 1.3 but for some reason it doesn't work with the context path or maybe the reverse proxy. I am running Jenkins with '--prefix=/jenkins' and maybe just setting a prefix would be sufficient to reproduce the bug.