Jenkins with Github and OAuth Stuck in Redirect Loop on Login

github, github-api, hudson, jenkins, oauth

Solution

Finally found it:

Make the callback url look like: http://myserver.com:8080/securityRealm/finishLogin

Problem

I have successfully set up Jenkins to pull from my private github repo and build my project, run tests, etc. What I want to do now is automatically build when I push to master. I have installed the Github OAuth plugin and set it up through Github, but when I log in Jenkins is stuck in a redirect loop. I registered a new application in Github and set the following values; ``` Name: Jenkins URL: http://myServer:8080 Callback URL: http://myServer:8080 ``` I cannot find anywhere in any documentation what the correct value for "Callback URL" should be. Is this why it's redirecting?

Original source