Sam Authentication 8.9.9 Lts Developer Edition

SAML Authentication Issue

Team i am facing issue in redirect url below is the error

The response was received at http://sonarqubeIP:9000/oauth2/callback/saml instead of https://xxxxx.yourdomain.com/oauth2/callback/saml
2023.03.17 10:00:29 ERROR web[AYboqmvAKR9FXMEXAAo2][c.o.saml2.Auth] processResponse error. invalid_response

Hey there.

What do the logs say?. You might need to bump up the log level (global Administration > System > Log Level)

:warning: Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley:

SonarQube 9.9 LTS also offers a dedicated space in the UI for debugging SAML integration. I highly encourage you to upgrade.

Hi there,

Error log says as below.

2023.03.21 13:34:13 ERROR web[AYboqmvAKR9FXMEXACTm][c.o.s.a.SamlResponse] The response was received at http://xx.xx.x.xxx:9000/oauth2/callback/saml instead of https://sonar.xxxxxxx.com/oauth2/callback/saml
2023.03.21 13:34:13 ERROR web[AYboqmvAKR9FXMEXACTm][c.o.saml2.Auth] processResponse error. invalid_response

Hey there.

It looks like the SAML response is received at a different address than expected. What are you using to serve SonarQube over HTTPS (IIS, Nginx, Apache…)

Hi Colin,
Sorry for the late response, for HTTPS we are using Nginx

You’ll need to make sure that the X-Forwarded-Proto header is set to https. You might also find this post helpful: