Versions Compared

Key

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

...

Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/openid.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe}

Description / Features

This plugin enables user authentication and Single Sign-On via an OpenID provider:

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

Installation

  1. Install the OpenID plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
  2. Restart the Sonar server
  • in SonarQube

Include Page
Include - Plugin Installation
Include - Plugin Installation

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
# 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.

Include Page
Include - Technical Users
Include - Technical Users

Logs

Note that the library openid4java generates many INFO logs. Edit For versions prior to SonarQube 4.1, edit the file conf/logback.xml and add the following loggers to log only warnings and errors:

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

Note for Tomcat

When Sonar 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.

Change Log

JIRA Issues
anonymoustrue
titleRelease 1.1
height70
renderModestatic
width800
columnstype;key;summary;priority;status;resolution
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22OPENID-1.1%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleRelease 1.0
height70
renderModestatic
width800
columnstype;key;summary;priority;status;resolution
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22OPENID-1.0%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000