Versions Compared

Key

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

...

Warning

This plugin is deprecated since Sonar SonarQubeTM 3.3.

Description / Features

...

  • 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 SonarSonarQubeTM

Installation

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

Usage

Add the following properties to $SONAR SONARQUBE_HOME/conf/sonar.properties and restart the Sonar SonarQubeTM 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

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

# Optional CAS server logout URL. If set, sonarSonarQube 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

...