how to configure logout URL when using HTTP header authentication

449 views
Skip to first unread message

Lu Shen

unread,
May 25, 2018, 3:01:12 PM5/25/18
to SonarQube
 I am using http header authentication and have configured the following section. The header is passed in from an Apache proxy server (which gets the authentication and authorization info from an SSO policy server) and working fine. 
# SSO AUTHENTICATION

# Enable authentication using HTTP headers
sonar.web.sso.enable=true

# Name of the header to get the user login.
# Only alphanumeric, '.' and '@' characters are allowed
sonar.web.sso.loginHeader=uid

# Name of the header to get the user name
sonar.web.sso.nameHeader=name

# Name of the header to get the user email (optional)
sonar.web.sso.emailHeader=email

# Name of the header to get the list of user groups, separated by comma (optional).
# If the sonar.sso.groupsHeader is set, the user will belong to those groups if groups exist in SonarQube.
# If none of the provided groups exists in SonarQube, the user will only belong to the default group.
# Note that the default group will always be set.
sonar.web.sso.groupsHeader=X-Forwarded-Groups

Now my issue is how to configure the logout button to log user out. There is a specific URL I should use but I cannot find a place to change the logout URL in sonar. Right now it redirects to session/logout and no logout happens.

Julien Lancelot

unread,
May 28, 2018, 5:32:43 AM5/28/18
to Lu Shen, SonarQube
Hi,

You need to configure your reverse proxy if you want to override the logout URL.

Regards,

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/eb71e633-b68d-4c8c-8e35-46b4928d9a36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Julien Lancelot | SonarSource

tmtm3...@gmail.com

unread,
May 31, 2018, 11:06:06 PM5/31/18
to SonarQube
Where can I find samples of working apache proxy configurations that works with siteminder webagent?
Reply all
Reply to author
Forward
0 new messages