When i try to login, the following error is shown:
Log message:
2021.07.12 15:36:04 ERROR web[AXqauDJWa+2Vp2SJAAEp][c.o.s.a.SamlResponse] The response was received at https://localhost:9000/oauth2/callback/saml instead of https://foo.comoauth2/callback/saml
2021.07.12 15:36:04 ERROR web[AXqauDJWa+2Vp2SJAAEp][c.o.saml2.Auth] processResponse error. invalid_response
Iāve configured the SAML provider and similar configurations already work with other tools.
The redirect URL on Azure AD is configured to the public address https://foo.com/oauth2/callback/saml
nginx reverse proxy config:
server {
listen 443 ssl;
server_name foo.com;
ssl_certificate foo;
ssl_certificate_key foo;
client_max_body_size 5000M;
location / {
#don't let google index this page
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
proxy_pass http://localhost:9000;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
I guess it is related with the base url.
I did set https://foo.com as server base URL in the ui
I also set it in the sonar properties files directly.
sonar.core.serverBaseURL=https://foo.com
What needs to be changed in order to get SAML working in this szenario?
Iāve checked most of the forum entries about this topic but was unable to find a solution.