Hello,
I'm running SonarQube 6.1 behind an NGINX HTTPS reverse proxy. My SonarQube base URL is https://<myhost>/sonar
I've just installed the Bitbucket Authentication Plugin version 1.0 (very convenient, many thanks to the developer) and configured it so that only existing users are allowed to authenticate. Everything seems to work fine for authorized users, which makes me believe my reverse proxy setup is ok. But when I try to login as an unauthorized Bitbucket user I get a 404 error. The callback redirects me to http://<myhost>/sessions/unauthorized?message=%27bitbucket%27+users+are+not+allowed+to+sign+up (notice the protocol change and missing /sonar location) and then NGINX redirects me to the corresponding HTTPS URL, which doesn't exist. If I manually hit https://<myhost>/sonar/sessions/unauthorized?message=%27bitbucket%27+users+are+not+allowed+to+sign+up I get a nice unauthorized page, so I guess that's where I was supposed to be redirected to.
I have set the sonar.core.serverBaseURL property as the plugin documentation requires.
I also noticed the
same issue has been reported and is still open in the sonar-auth-google plugin, which, according to the documentation, is a port of the sonar-auth-github plugin. So I tried the sonar-auth-github plugin version 1.3 in a fresh SonarQube installation and got the exact same error.
This issue is not a show-stopper, but I figured it might be helpful to report it anyway.