Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Support OpenID Authentication 2.0
  • Support Google accounts
  • On the fly creation of users in sonar user referentialin SonarQubeT

Installation

  1. Install the OpenID plugin through the Update Center or download it into the SONAR SONARQUBE_HOME/extensions/plugins directory
  2. Restart the Sonar SonarQubeTM server

Usage

The following properties must be added to $SONAR SONARQUBE_HOME/conf/sonar.properties:

Code Block
languagenone
# This property must be set to true
sonar.authenticator.createUsers=true

# Enable OpenID plugin
sonar.security.realm=openid

# URL of OpenID provider
sonar.openid.providerUrl=https://www.google.com/accounts/o8/id

# URL of logout page
sonar.openid.providerLogoutUrl=https://www.google.com/accounts/Logout
 
# URL of SonarSonarQube server
sonar.openid.sonarServerUrl=http://localhost:9000

# Optional properties:
# sonar.authenticator.updateUserAttributes=true|false (since SonarSonarQube 3.6)
# If set to 'true', at each login, user's attributes (name, email, etc.) 
# are re-synchronized. If set to 'false', user's attributes are not 
# re-synchronized except when creating the user for the first time.

...

Code Block
languagehtml/xml
<logger name="org.openid4java">
  <level value="WARN"/>
</logger>

Note for Tomcat

When Sonar the SonarQubeTM WAR is deployed into Tomcat, characters in names that have utf-8 encodings break the OpenID validation. The attribute URIEncoding="UTF-8" must be added to the element <Connector/> in server.xml.

...