{iframe:src=http://update.sonarsource.org/plugins/openid.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
This plugin enables user authentication and Single Sign-On via an OpenID provider:
The following properties must be added to $SONAR_HOME/conf/sonar.properties:
# 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 Sonar server sonar.openid.sonarServerUrl=http://localhost:9000 |
Note that the library openid4java generates many INFO logs. Edit the file conf/logback.xml and add the following loggers to log only warnings and errors:
<logger name="org.openid4java"> <level value="WARN"/> </logger> |
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.