SonarQube and Okta integration problem

We are trying to set up the authentication with SAML using Okta but we are not able to access SonarQube after authentication due to an error.

Must-share information (formatted with Markdown):

  • which versions are you using:Sonarqube Enterprise 10.5.1
  • how is SonarQube deployed: It is an onprem installation
  • what are you trying to achieve: Okta integration
  • what have you tried so far to achieve this: The Okta authentication is working, but we receive an error after the response:

"You’re not authorized to access this page. Please contact the administrator.

Reason:
The response was received at hxxp://sonarqube.domain.com/oauth2/callback/saml instead of hxxps://sonarqube.domain.com/oauth2/callback/saml"

I’ve seen some other topics on how to solve this issue with a reverse proxy and we did try to use an IIS reverse proxy on the same server without luck. The traffic is redirected from the internal server through Kemp. We are looking for any possible help or clues that can help us identify the issue. The logs also don’t mention anything else except this error.

Thank you in advance.

Ok, I was able to solve this issue. In our case, I had to create a reverse proxy in IIS following a recommended guide that was shared on other similar posts.
Then, I had to ask to our network teams to redirect traffic through Kemp to port 443 instead of port 9000, which is then redirected using the IIS reverse proxy.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.