Reputation: 31
In connection with setting up SonarQube, I have installed and configured GitHub Authentication plugin, to allow users to use their GitHub credentials. Now when trying to login with a GitHub account (Pressing the "Login with GitHub" button, SonarQube redirects to "https://servername/login/oauth/authorize?..." which results in an error page, stating "The page you were looking for doesn't exist.".
It seems that the correct path should be "https://github.com/login/oauth/authorize?...", instead of pointing to my SonarQube server. Could it be that the plugin fails to resolve the URL for GitHub and using a blank url instead? Thereby creating a link to "/login/oauth/authorize?..."?
I have checked both the properties table in the database and the configurationfile for the property "sonar.auth.github.webUrl" - both are set to "https//github.com"
Upvotes: 1
Views: 1097
Reputation: 31
After struggling with this issue for some weeks now, I identified the problem and found the solution. The problem was with redirects, which due to my Reverse proxy setup, didn't work. I had followed the instructions for setting up the proxy, however it still failed. The solution was found on MSDN, https://blogs.msdn.microsoft.com/visualstudioalmrangers/2016/06/04/running-sonarqube-behind-an-iis-reversed-proxy/, which included a small addition to the sonarqube instructions, as it beside from the inbound rewrite rule, also included an outbound rule.
Upvotes: 2