Versions Compared

Key

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

...

  • 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 sonar user referential

...

Installation

  1. Install the

...

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

Usage

Add the following properties to $SONAR_HOME/conf/sonar.properties and restart the Sonar server:

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

# Enable CAS plugin
sonar.security.realm=cas

# Protocol is 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

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

# 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

...