Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/cas.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe}
Warningwarning
titleDeprecated

This plugin is deprecated since SonarQube TM 3.3.


Description / Features

This plugin enables user authentication and Single Sign-On via your Central Authentication Service (JA-SIG CAS):

  • Support CAS 1.0 protocol
  • Support CAS 2.0 protocol, used by CAS Server 2.x and 3.x
  • Support SAML 1.1 protocol
  • On the fly creation of users in SonarQubeTM

Installation

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

Usage

Add the following properties to SONARQUBE_HOME/conf/sonar.properties and restart the SonarQube TM server:

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

# Enable CAS plugin
sonar.security.realm=cas

# Protocol is cas1, cas2 or saml11
sonar.cas.protocol=cas2

# Location of the CAS server login form
sonar.cas.casServerLoginUrl=https://localhost:8443/cas/login

# CAS server root URL
sonar.cas.casServerUrlPrefix=https://localhost:8443/cas

# SonarQube server root URL, without ending slash
sonar.cas.sonarServerUrl=http://localhost:9000

# Optional CAS server logout URL. If set, SonarQube session will be deleted on CAS logout request.
#sonar.cas.casServerLogoutUrl=http://localhost:8080/cas/logout

# Specifies whether gateway=true should be sent to the CAS server. Default is false.
#sonar.cas.sendGateway=false

# The tolerance in milliseconds for drifting clocks when validating SAML 1.1 tickets.
# Note that 10 seconds should be more than enough for most environments that have NTP time synchronization.
# Default is 1000 milliseconds.
#sonar.cas.saml11.toleranceMilliseconds=1000

...