| 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
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
- Install the OpenID plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the Sonar server
Usage
The following properties must be added to $SONAR_HOME/conf/sonar.properties:
| Code Block |
|---|
|
# 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:
| Code Block |
|---|
|
<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 |
|---|
| anonymous | true |
|---|
| title | Release 1.1 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| width | 800 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://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 |
|---|
| anonymous | true |
|---|
| title | Release 1.0 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| width | 800 |
|---|
| columns | type;key;summary;priority;status;resolution |
|---|
| url | http://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 |
|---|
|