Apache Reverse Proxy & Google SAML? v8.9

Hi,

I have SonarQube v8.9 on port 19000 running behind an Apache proxy for HTTPS and it seems to be fine.

Listen 9000

<VirtualHost sonarqube.domain:9000>

  ServerName sonarqube.domain
  ServerAdmin me

  SSLEngine on
  SSLCertificateFile /etc/pki/tls/certs/sonarqube.crt
  SSLCertificateKeyFile /etc/pki/tls/private/sonarqube.key

  ProxyPass / http://localhost:19000/
  ProxyPassReverse / http://localhost:19000/
  ProxyPreserveHost On
  ProxyRequests Off

  RequestHeader set X-Forwarded-Proto "https"  

</VirtualHost>

I’m now trying to get this working with Google SAML SSO.

  • sonar.auth.saml.applicationId = sonarqube
  • sonar.auth.saml.providerName = Google
  • sonar.auth.saml.providerId = FROM GOOGLE
  • sonar.auth.saml.loginUrl = FROM GOOGLE
  • sonar.auth.saml.certificate.secured = FROM GOOGLE

What should

  • sonar.auth.saml.user.login
  • sonar.auth.saml.user.name
  • sonar.auth.saml.user.email
  • sonar.auth.saml.group.name

Be set to?

At present when I click on the “Log in with Google” button it just reloads the page.

Thanks,
Nige.

Ignore this. Worked with our G Suite admin to understand what was going on here. I didn’t have visibility of the fact attributes can be set up there.

2 Likes

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