Oauth2 SAML error

Dear Team,
Recently, SonarQube version 9.8 on the server had SAML enabled. We have a URL that uses SSL to visit SonarQube. The URL asks for credentials when it is launched, and then immediately displays the error message listed below.

Error:
“You’re not authorized to access this page. Please contact the administrator.
Reason: The response was received at http://sonarqube.company.com/oauth2/callback/saml instead of https://sonarqube.company.com/oauth2/callback/saml

URL : https://sonarqube.company.com/

Please be aware that SonarQube has been set up as a Windows service and is configured using a load balancer. We don’t currently use a proxy to reroute the URL.

To set up SAML in SonarQube, we used the configuration listed below.
Operating System : Windows 2019 Server Standard
JAVA Version : 1.8
Database provider : PostgreSQL version : 13.3

Please assist us in fixing this problem.

Please let me know if you require any additional details from our end.

Thank you
Dharmesh Navlakha

1 Like

Closing as a duplicate of this thread.