GitLab login results in a redirection error:sessions/unauthorized

  • which versions are you using SonarQube Server 9.7
  • how is SonarQube deployed: Helm

I have set up Authentication with GitLab, and now I’m facing an issue: when logging in with GitLab, a redirection page appears.

If I don’t click on the link, I can be automatically redirected and log in successfully.


However, if I manually click on the link on the page, I get redirected to the sessions/unauthorized page, which results in a login failure.

Hey @miao

I can’t reproduce this on either SonarQube v9.9 or v10.8. In fact, I can’t actually get to a page that would require me to follow a redirect, so I’m not sure what’s going on there.

First things first, you’re using an EOL version of SonarQube.

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.7 → 9.9.8 → 10.8.1 (last step optional)

You may find these resources helpful:

If the issue persists, my next suggestion would be to stop by your logs (specifically web.log) to see if there’s a clearer message about why authentication failed.