CAS Properties

Various properties can be specified in CAS either inside configuration files or as command line switches. This section provides a list common CAS properties and references to the underlying modules that consume them.

Be Selective

This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.

Note that property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property and CAS_SOME_PROPERTY are all valid names.

The following list of properties are controlled by and provided to CAS. Each block, for most use cases, corresponds to a specific CAS module that is expected to be included in the final CAS distribution prepared during the build and deployment process.

YAGNI

Note that for nearly ALL use cases, simply declaring and configuring properties listed below is sufficient. You should NOT have to explicitly massage a CAS XML configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you.

General

A number of CAS configuration options equally apply to a number of modules and features. To understand and take note of those options, please review this guide.

Custom Settings

The following settings could be used to extend CAS with arbitrary configuration keys and values:

1
# cas.custom.properties.[property-name]=[property-value]

Configuration Storage

Standalone

CAS by default will attempt to locate settings and properties inside a given directory indicated under the setting name cas.standalone.configurationDirectory and otherwise falls back to using /etc/cas/config.

There also exists a cas.standalone.configurationFile which can be used to directly feed a collection of properties to CAS in form of a file or classpath resource. This is specially useful in cases where a bare CAS server is deployed in the cloud without the extra ceremony of a configuration server or an external directory for that matter and the deployer wishes to avoid overriding embedded configuration files.

Spring Cloud

The following settings are to be loaded by the CAS configuration runtime, which bootstraps the entire CAS running context. They are to be put inside the src/main/resources/bootstrap.properties of the configuration server itself. See this guide for more info.

The configuration server backed by Spring Cloud supports the following profiles.

Native

Load settings from external properties/yaml configuration files.

1
2
3
4
# spring.profiles.active=native

# The configuration directory where CAS should monitor to locate settings.
# spring.cloud.config.server.native.searchLocations=file:///etc/cas/config

Git Repository

Load settings from an internal/external Git repository.

1
2
3
4
5
6
7
8
9
10
11
12
13
# spring.profiles.active=default

# The location of the git repository that contains CAS settings.
# The location can point to an HTTP/SSH/directory.
# spring.cloud.config.server.git.uri=https://github.com/repoName/config
# spring.cloud.config.server.git.uri=file://${user.home}/config

# The credentials used to authenticate git requests, specially
# when using HTTPS. If connecting to the repository via SSH, remember
# to register your public keys with an SSH agent just as your normal would have
# with any other public repository.
# spring.cloud.config.server.git.username=
# spring.cloud.config.server.git.password=

The above configuration also applies to online git-based repositories such as Github, BitBucket, etc.

Consul

Load settings from HashiCorp’s Consul.

1
2
3
4
5
6
7
# spring.cloud.consul.config.enabled=true
# spring.cloud.consul.config.prefix=configuration
# spring.cloud.consul.config.defaultContext=apps
# spring.cloud.consul.config.profileSeparator=::

# spring.cloud.consul.config.watch.delay=1000
# spring.cloud.consul.config.watch.enabled=false

Vault

Load settings from HashiCorp’s Vault.

1
2
3
4
5
6
7
8
9
10
# spring.cloud.vault.host=127.0.0.1
# spring.cloud.vault.port=8200
# spring.cloud.vault.token=1305dd6a-a754-f145-3563-2fa90b0773b7
# spring.cloud.vault.connectionTimeout=3000
# spring.cloud.vault.readTimeout=5000
# spring.cloud.vault.enabled=true
# spring.cloud.vault.fail-fast=true
# spring.cloud.vault.scheme=http
# spring.cloud.vault.generic.enabled=true
# spring.cloud.vault.generic.backend=secret

MongoDb

Load settings from a MongoDb instance.

1
# cas.spring.cloud.mongo.uri=mongodb://casuser:Mellon@ds135522.mlab.com:35522/jasigcas

Azure KeyVault Secrets

Load settings from Microsoft Azure’s KeyVault instance.

1
2
3
4
5
# azure.keyvault.enabled=true
# azure.keyvault.uri=put-your-azure-keyvault-uri-here
# azure.keyvault.client-id=put-your-azure-client-id-here
# azure.keyvault.client-key=put-your-azure-client-key-here
# azure.keyvault.token-acquire-timeout-seconds=60

ZooKeeper

Load settings from an Apache ZooKeeper instance.

1
2
3
4
5
# spring.cloud.zookeeper.connectString=localhost:2181
# spring.cloud.zookeeper.enabled=true
# spring.cloud.zookeeper.config.enabled=true
# spring.cloud.zookeeper.maxRetries=10
# spring.cloud.zookeeper.config.root=cas/config

Amazon Secrets Manager

Common AWS settings for this feature are available here under the configuration key cas.spring.cloud.aws.secretsManager.

Amazon S3

The following settings may be passed using strategies outlined here in order for CAS to establish a connection, using the configuration key cas.spring.cloud.aws.s3.

1
# ${configurationKey}.bucketName=cas-properties

Common AWS settings for this feature are available here under the configuration key cas.spring.cloud.aws.s3.

DynamoDb

Common AWS settings for this feature are available here under the configuration key cas.spring.cloud.dynamodb.

JDBC

Load settings from a RDBMS instance. Database settings for this feature are available here under the configuration key cas.spring.cloud.jdbc.

1
# cas.spring.cloud.jdbc.sql=SELECT id, name, value FROM CAS_SETTINGS_TABLE

Configuration Security

To learn more about how sensitive CAS settings can be secured, please review this guide.

Standalone

1
2
3
4
# cas.standalone.configurationSecurity.alg=PBEWithMD5AndTripleDES
# cas.standalone.configurationSecurity.provider=BC
# cas.standalone.configurationSecurity.iterations=
# cas.standalone.configurationSecurity.psw=

The above settings may be passed to CAS using any of the strategies outline here, though it might be more secure to pass them to CAS as either command-line or system properties.

Spring Cloud

Encrypt and decrypt configuration via Spring Cloud, if the Spring Cloud configuration server is used.

1
2
3
4
5
6
# spring.cloud.config.server.encrypt.enabled=true

# encrypt.keyStore.location=file:///etc/cas/casconfigserver.jks
# encrypt.keyStore.password=keystorePassword
# encrypt.keyStore.alias=DaKey
# encrypt.keyStore.secret=changeme

Cloud Configuration Bus

CAS uses the Spring Cloud Bus to manage configuration in a distributed deployment. Spring Cloud Bus links nodes of a distributed system with a lightweight message broker.

1
2
3
4
5
# spring.cloud.bus.enabled=false
# spring.cloud.bus.refresh.enabled=true
# spring.cloud.bus.env.enabled=true
# spring.cloud.bus.destination=CasCloudBus
# spring.cloud.bus.ack.enabled=true

To learn more about this topic, please review this guide.

RabbitMQ

Broadcast CAS configuration updates to other nodes in the cluster via RabbitMQ.

1
2
3
4
5
6
7
# spring.rabbitmq.host=
# spring.rabbitmq.port=
# spring.rabbitmq.username=
# spring.rabbitmq.password=

# Or all of the above in one line
# spring.rabbitmq.addresses=

Kafka

Broadcast CAS configuration updates to other nodes in the cluster via Kafka.

1
2
3
# spring.cloud.stream.bindings.output.content-type=application/json
# spring.cloud.stream.kafka.binder.zkNodes=...
# spring.cloud.stream.kafka.binder.brokers=...

Embedded Container

The following properties are related to the embedded containers that ship with CAS.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server.contextPath=/cas

# By default and if you remove this setting, CAS runs on port 8080
server.port=8443

# To disable SSL configuration, comment out the following settings or set to blank values.
server.ssl.keyStore=file:/etc/cas/thekeystore
server.ssl.keyStorePassword=changeit
server.ssl.keyPassword=changeit
# server.ssl.ciphers=
# server.ssl.clientAuth=
# server.ssl.enabled=
# server.ssl.keyAlias=
# server.ssl.keyStoreProvider=
# server.ssl.keyStoreType=
# server.ssl.protocol=
# server.ssl.trustStore=
# server.ssl.trustStorePassword=
# server.ssl.trustStoreProvider=
# server.ssl.trustStoreType=

server.maxHttpHeaderSize=2097152
server.useForwardHeaders=true
server.connectionTimeout=20000

Embedded Apache Tomcat Container

The following settings affect the runtime behavior of the embedded Apache Tomcat container.

1
2
3
4
5
6
7
8
9
10
11
12
13
# server.tomcat.basedir=build/tomcat

# server.tomcat.accesslog.enabled=true
# server.tomcat.accesslog.pattern=%t %a "%r" %s (%D ms)
# server.tomcat.accesslog.suffix=.log

# server.tomcat.maxHttpPostSize=20971520
# server.tomcat.maxThreads=5
# server.tomcat.portHeader=X-Forwarded-Port
# server.tomcat.protocolHeader=X-Forwarded-Proto
# server.tomcat.protocolHeaderHttpsValue=https
# server.tomcat.remoteIpHeader=X-FORWARDED-FOR
# server.tomcat.uriEncoding=UTF-8

HTTP Proxying

In the event that you decide to run CAS without any SSL configuration in the embedded Tomcat container and on a non-secure port yet wish to customize the connector configuration that is linked to the running port (i.e. 8080), the following settings may apply:

1
2
3
4
5
6
7
# cas.server.httpProxy.enabled=true
# cas.server.httpProxy.secure=true
# cas.server.httpProxy.protocol=AJP/1.3
# cas.server.httpProxy.scheme=https
# cas.server.httpProxy.redirectPort=
# cas.server.httpProxy.proxyPort=
# cas.server.httpProxy.attributes.attributeName=attributeValue

HTTP

Enable HTTP connections for the embedded Tomcat container, in addition to the configuration linked to the server.port setting.

1
2
3
4
# cas.server.http.port=8080
# cas.server.http.protocol=org.apache.coyote.http11.Http11NioProtocol
# cas.server.http.enabled=true
# cas.server.http.attributes.attributeName=attributeValue

AJP

Enable AJP connections for the embedded Tomcat container,

1
2
3
4
5
6
7
8
9
10
11
12
# cas.server.ajp.secure=false
# cas.server.ajp.enabled=false
# cas.server.ajp.proxyPort=-1
# cas.server.ajp.protocol=AJP/1.3
# cas.server.ajp.asyncTimeout=5000
# cas.server.ajp.scheme=http
# cas.server.ajp.maxPostSize=20971520
# cas.server.ajp.port=8009
# cas.server.ajp.enableLookups=false
# cas.server.ajp.redirectPort=-1
# cas.server.ajp.allowTrace=false
# cas.server.ajp.attributes.attributeName=attributeValue

SSL Valve

The Tomcat SSLValve is a way to get a client certificate from an SSL proxy (e.g. HAProxy or BigIP F5) running in front of Tomcat via an HTTP header. If you enable this, make sure your proxy is ensuring that this header does not originate with the client (e.g. the browser).

1
2
3
4
5
# cas.server.sslValve.enabled=false
# cas.server.sslValve.sslClientCertHeader=ssl_client_cert
# cas.server.sslValve.sslCipherHeader=ssl_cipher
# cas.server.sslValve.sslSessionIdHeader=ssl_session_id
# cas.server.sslValve.sslCipherUserKeySizeHeader=ssl_cipher_usekeysize

Example HAProxy Configuration (snippet): Configure SSL frontend with cert optional, redirect to cas, if cert provided, put it on header.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
frontend web-vip
  bind 192.168.2.10:443 ssl crt /var/lib/haproxy/certs/www.example.com.pem ca-file /var/lib/haproxy/certs/ca.pem verify optional
  mode http
  acl www-cert ssl_fc_sni if { www.example.com }
  acl empty-path path /
  http-request redirect location /cas/ if empty-path www-cert
  http-request del-header ssl_client_cert unless { ssl_fc_has_crt }
  http-request set-header ssl_client_cert -----BEGIN\ CERTIFICATE-----\ %[ssl_c_der,base64]\ -----END\ CERTIFICATE-----\  if { ssl_fc_has_crt }
  acl cas-path path_beg -i /cas
  reqadd X-Forwarded-Proto:\ https
  use_backend cas-pool if cas-path

backend cas-pool
  option httpclose
  option forwardfor
  cookie SERVERID-cas insert indirect nocache
  server cas-1 192.168.2.10:8080 check cookie cas-1

Extended Access Log Valve

Enable the extended access log for the embedded Tomcat container.

1
2
3
4
5
# cas.server.extAccessLog.enabled=false
# cas.server.extAccessLog.pattern=c-ip s-ip cs-uri sc-status time x-threadname x-H(secure) x-H(remoteUser)
# cas.server.extAccessLog.suffix=.log
# cas.server.extAccessLog.prefix=localhost_access_extended
# cas.server.extAccessLog.directory=

Rewrite Valve

Enable the rewrite valve for the embedded Tomcat container.

1
# cas.server.rewriteValve.location=classpath://container/tomcat/rewrite.config

Basic Authentication

Enable basic authentication for the embedded Apache Tomcat.

1
2
3
4
# cas.server.basicAuthn.enabled=true
# cas.server.basicAuthn.securityRoles[0]=admin
# cas.server.basicAuthn.authRoles[0]=admin
# cas.server.basicAuthn.patterns[0]=/*

Session Clustering & Replication

Enable session replication to replicate web application session deltas.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# cas.server.clustering.enabled=false
# cas.server.clustering.clusterMembers=ip-address:port:index

# cas.server.clustering.expireSessionsOnShutdown=false
# cas.server.clustering.channelSendOptions=8

# cas.server.clustering.receiverPort=4000
# cas.server.clustering.receiverTimeout=5000
# cas.server.clustering.receiverMaxThreads=6
# cas.server.clustering.receiverAddress=auto
# cas.server.clustering.receiverAutoBind=100

# cas.server.clustering.membershipPort=45564
# cas.server.clustering.membershipAddress=228.0.0.4
# cas.server.clustering.membershipFrequency=500
# cas.server.clustering.membershipDropTime=3000
# cas.server.clustering.membershipRecoveryEnabled=true
# cas.server.clustering.membershipLocalLoopbackDisabled=false
# cas.server.clustering.membershipRecoveryCounter=10

# cas.server.clustering.managerType=DELTA|BACKUP

CAS Server

Identify the CAS server. name and prefix are always required settings.

A CAS host is automatically appended to the ticket ids generated by CAS. If none is specified, one is automatically detected and used by CAS.

1
2
3
# cas.server.name=https://cas.example.org:8443
# cas.server.prefix=https://cas.example.org:8443/cas
# cas.host.name=

CAS Banner

On startup, CAS will display a banner along with some diagnostics info. In order to skip this step and summarize, set the system property -DCAS_BANNER_SKIP=true.

Update Check

CAS may also be conditionally configured to report, as part of the banner, whether a newer CAS release is available for an upgrade. This check is off by default and may be enabled with a system property of -DCAS_UPDATE_CHECK_ENABLED=true.

Spring Boot Endpoints

The following properties describe access controls and settings for the /status endpoint of CAS which provides administrative functionality and oversight into the CAS software. These endpoints are specific to Spring Boot.

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Globally control whether endpoints are enabled
# or marked as sensitive to require authentication.
# endpoints.enabled=true
# endpoints.sensitive=true

management.contextPath=/status
management.security.enabled=true
management.security.roles=ACTUATOR,ADMIN
management.security.sessions=if_required

# Each of the below endpoints can either be disabled
# or can be marked as 'sensitive' (or not)
# to enable authentication. The global flags above control
# everything and individual settings below act as overrides.

# endpoints.restart.enabled=false
# endpoints.shutdown.enabled=false
# endpoints.autoconfig.enabled=true
# endpoints.beans.enabled=true
# endpoints.bus.enabled=true
# endpoints.configprops.enabled=true
# endpoints.dump.enabled=true
# endpoints.env.enabled=true
# endpoints.health.enabled=true
# endpoints.features.enabled=true
# endpoints.info.enabled=true
# endpoints.loggers.enabled=true
# endpoints.logfile.enabled=true
# endpoints.trace.enabled=true
# endpoints.docs.enabled=false
# endpoints.heapdump.enabled=true

# IP address may be enough to protect all endpoints.
# It's set to always protect the /status endpoint.
# cas.adminPagesSecurity.ip=127\.0\.0\.1
# cas.adminPagesSecurity.alternateIpHeaderName=X-Forwarded-For

# If you wish to protect the admin pages via CAS itself, configure the rest.
# cas.adminPagesSecurity.loginUrl=https://sso.example.org/cas/login
# cas.adminPagesSecurity.service=https://sso.example.org/cas/status/dashboard
# cas.adminPagesSecurity.users=file:/etc/cas/config/adminusers.properties
# cas.adminPagesSecurity.adminRoles[0]=ROLE_ADMIN

# cas.adminPagesSecurity.actuatorEndpointsEnabled=true

The format of the adminusers.properties file which houses a list of authorized users to access the admin pages via CAS is:

1
# casuser=notused,ROLE_ADMIN

The format of the file is as such:

  • casuser: This is the authenticated user id received from CAS
  • notused: This is the password field that isn’t used by CAS. You could literally put any value you want in its place.
  • ROLE_ADMIN: Role assigned to the authorized user as an attribute, which is then cross checked against CAS configuration.

Spring Boot Admin Server

To learn more about this topic, please review this guide.

1
2
3
4
5
# spring.boot.admin.url=https://bootadmin.example.org:8444
# spring.boot.admin.client.managementUrl=${cas.server.prefix}/status
# spring.boot.admin.client.name=Apereo CAS
# spring.boot.admin.client.metadata.user.name=
# spring.boot.admin.client.metadata.user.password=

CAS Endpoints

These are the collection of endpoints that are specific to CAS. To learn more about this topic, please review this guide.

The following configuration keys are available and mapped to CAS endpoints:

  • cas.monitor.endpoints
  • cas.monitor.endpoints.dashboard
  • cas.monitor.endpoints.discovery
  • cas.monitor.endpoints.auditEvents
  • cas.monitor.endpoints.authenticationEvents
  • cas.monitor.endpoints.configurationState
  • cas.monitor.endpoints.healthCheck
  • cas.monitor.endpoints.loggingConfig
  • cas.monitor.endpoints.metrics
  • cas.monitor.endpoints.attributeResolution
  • cas.monitor.endpoints.singleSignOnReport
  • cas.monitor.endpoints.statistics
  • cas.monitor.endpoints.trustedDevices
  • cas.monitor.endpoints.status
  • cas.monitor.endpoints.singleSignOnStatus
  • cas.monitor.endpoints.springWebflowReport
  • cas.monitor.endpoints.registeredServicesReport
  • cas.monitor.endpoints.configurationMetadata

The following settings equally apply to all CAS endpoints:

1
2
# ${configurationKey}.enabled=false
# ${configurationKey}.sensitive=true

Securing Endpoints With Spring Security

Monitoring endpoints may also be secured by Spring Security. You can define the authentication scheme/paths via the below settings.

1
2
3
4
5
6
7
# security.ignored[0]=/**
# security.filterOrder=0
# security.requireSsl=true
# security.sessions=if_required
# security.user.name=<predefined-userid>
# security.user.password=<predefined-password>
# security.user.role=ACTUATOR

Basic Authentication

Enable basic authentication for Spring Security to secure endpoints.

1
2
3
4
# security.basic.authorizeMode=none|role|authenticated
# security.basic.enabled=true
# security.basic.path=/cas/status/**
# security.basic.realm=CAS

JAAS Authentication

Enable JAAS authentication for Spring Security to secure endpoints.

1
2
3
# cas.adminPagesSecurity.jaas.loginConfig=file:/path/to/config
# cas.adminPagesSecurity.jaas.refreshConfigurationOnStartup=true
# cas.adminPagesSecurity.jaas.loginContextName=

JDBC Authentication

Enable JDBC authentication for Spring Security to secure endpoints. Database settings for this feature are available here under the configuration key cas.adminPagesSecurity.jdbc.

1
# cas.adminPagesSecurity.jdbc.query=SELECT username,password,enabled FROM users WHERE username=?

LDAP Authentication

Enable LDAP authentication for Spring Security to secure endpoints. LDAP settings for this feature are available here under the configuration key cas.adminPagesSecurity.ldap.

1
2
3
4
5
# cas.adminPagesSecurity.ldap.ldapAuthz.groupAttribute=
# cas.adminPagesSecurity.ldap.ldapAuthz.groupPrefix=
# cas.adminPagesSecurity.ldap.ldapAuthz.groupFilter=
# cas.adminPagesSecurity.ldap.ldapAuthz.rolePrefix=ROLE_
# cas.adminPagesSecurity.ldap.ldapAuthz.roleAttribute=uugid

Web Application Session

Control the CAS web application session behavior as it’s treated by the underlying servlet container engine.

1
2
3
# server.session.timeout=300
# server.session.cookie.httpOnly=true
# server.session.trackingModes=COOKIE

Views

Control how CAS should treat views and other UI elements.

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# spring.thymeleaf.encoding=UTF-8

# Controls  whether views should be cached by CAS.
# When turned on, ad-hoc chances to views are not automatically
# picked up by CAS until a restart. Small incremental performance
# improvements are to be expected.
# spring.thymeleaf.cache=true

# Instruct CAS to locate views at the below location.
# This location can be externalized to a directory outside
# the cas web application.
# spring.thymeleaf.prefix=classpath:/templates/

# Ensure CAS protocol v2 can behave like v3 when
# validating service tickets, etc.
# cas.view.cas2.v3ForwardCompatible=false

# Indicate where core CAS-protocol related views should be found
# in the view directory hierarchy.
# cas.view.cas2.success=protocol/2.0/casServiceValidationSuccess
# cas.view.cas2.failure=protocol/2.0/casServiceValidationFailure
# cas.view.cas2.proxy.success=protocol/2.0/casProxySuccessView
# cas.view.cas2.proxy.failure=protocol/2.0/casProxyFailureView

# cas.view.cas3.success=protocol/3.0/casServiceValidationSuccess
# cas.view.cas3.failure=protocol/3.0/casServiceValidationFailure

# Indicates how attributes should be rendered in the validation response
# cas.view.cas3.attributeRendererType=DEFAULT|INLINE

# Defines a default URL to which CAS may redirect if there is no service
# provided in the authentication request.
# cas.view.defaultRedirectUrl=https://www.github.com

# CAS views may be located at the following paths outside
# the web application context, in addition to prefix specified
# above which is handled via Thymeleaf.
# cas.view.templatePrefixes[0]=file:///etc/cas/templates

Restful Views

Control the resolution of CAS views via REST. RESTful settings for this feature are available here under the configuration key cas.view.rest.

Logging

Control the location and other settings of the CAS logging configuration. To learn more about this topic, please review this guide.

1
2
3
4
5
# logging.config=file:/etc/cas/log4j2.xml
server.contextParameters.isLog4jAutoInitializationDisabled=true

# Control log levels via properties
# logging.level.org.apereo.cas=DEBUG

To disable log sanitization, start the container with the system property CAS_TICKET_ID_SANITIZE_SKIP=true.

AspectJ Configuration

1
2
# spring.aop.auto=true
# spring.aop.proxyTargetClass=true

Authentication Attributes

Set of authentication attributes that are retrieved by the principal resolution process, typically via some component of Person Directory from a number of attribute sources unless noted otherwise by the specific authentication scheme.

If multiple attribute repository sources are defined, they are added into a list and their results are cached and merged.

1
2
3
4
# cas.authn.attributeRepository.expirationTime=30
# cas.authn.attributeRepository.expirationTimeUnit=MINUTES
# cas.authn.attributeRepository.maximumCacheSize=10000
# cas.authn.attributeRepository.merger=REPLACE|ADD|MERGE
Remember This

Note that in certain cases, CAS authentication is able to retrieve and resolve attributes from the authentication source in the same authentication request, which would eliminate the need for configuring a separate attribute repository specially if both the authentication and the attribute source are the same. Using separate repositories should be required when sources are different, or when there is a need to tackle more advanced attribute resolution use cases such as cascading, merging, etc. See this guide for more info.

Attributes for all sources are defined in their own individual block. CAS does not care about the source owner of attributes. It finds them where they can be found and otherwise, it moves on. This means that certain number of attributes can be resolved via one source and the remaining attributes may be resolved via another. If there are commonalities across sources, the merger shall decide the final result and behavior.

The story in plain english is:

  • I have a bunch of attributes that I wish to resolve for the authenticated principal.
  • I have a bunch of sources from which said attributes are retrieved.
  • Figure it out.

Note that attribute repository sources, if/when defined, execute in a specific order. This is important to take into account when attribute merging may take place. By default, the execution order is the following but can be adjusted per source:

  1. LDAP
  2. JDBC
  3. JSON
  4. Groovy
  5. Internet2 Grouper
  6. REST
  7. Script
  8. Stubbed/Static

Note that if no explicit attribute mappings are defined, all permitted attributes on the record may be retrieved by CAS from the attribute repository source and made available to the principal. On the other hand, if explicit attribute mappings are defined, then only mapped attributes are retrieved.

Multimapped Attribute

Attributes may be allowed to be virtually renamed and remapped. The following definition, for instance, attempts to grab the attribute uid from the attribute source and rename it to userId:

1
# cas.authn.attributeRepository.[type-placeholder].attributes.uid=userId

Merging Strategies

The following mergeing strategies can be used to resolve conflicts when the same attribute are found from multiple sources:

Type Description
REPLACE Overwrites existing attribute values, if any.
ADD Retains existing attribute values if any, and ignores values from subsequent sources in the resolution chain.
MERGE Combines all values into a single attribute, essentially creating a multi-valued attribute.

Stub

Static attributes that need to be mapped to a hardcoded value belong here.

1
2
3
4
# cas.authn.attributeRepository.stub.attributes.uid=uid
# cas.authn.attributeRepository.stub.attributes.displayName=displayName
# cas.authn.attributeRepository.stub.attributes.cn=commonName
# cas.authn.attributeRepository.stub.attributes.affiliation=groupMembership

LDAP

If you wish to directly and separately retrieve attributes from an LDAP source, LDAP settings for this feature are available here under the configuration key cas.authn.attributeRepository.ldap[0].

1
2
3
4
# cas.authn.attributeRepository.ldap[0].attributes.uid=uid
# cas.authn.attributeRepository.ldap[0].attributes.displayName=displayName
# cas.authn.attributeRepository.ldap[0].attributes.cn=commonName
# cas.authn.attributeRepository.ldap[0].attributes.affiliation=groupMembership

Groovy

If you wish to directly and separately retrieve attributes from a Groovy script, the following settings are then relevant:

1
2
3
# cas.authn.attributeRepository.groovy[0].location=file:/etc/cas/attributes.groovy
# cas.authn.attributeRepository.groovy[0].caseInsensitive=false
# cas.authn.attributeRepository.groovy[0].order=0

The Groovy script may be designed as:

1
2
3
4
5
6
7
8
9
10
11
import java.util.*

def Map<String, List<Object>> run(final Object... args) {
    def uid = args[0]
    def logger = args[1]
    def casProperties = args[2]
    def casApplicationContext = args[3]

    logger.debug("[{}]: The received uid is [{}]", this.class.simpleName, uid)
    return[username:[uid], likes:["cheese", "food"], id:[1234,2,3,4,5], another:"attribute"]
}

JSON

If you wish to directly and separately retrieve attributes from a static JSON source, the following settings are then relevant:

1
2
# cas.authn.attributeRepository.json[0].location=file://etc/cas/attribute-repository.json
# cas.authn.attributeRepository.json[0].order=0

The format of the file may be:

1
2
3
4
5
6
7
8
9
10
{
    "user1": {
        "firstName":["Json1"],
        "lastName":["One"]
    },
    "user2": {
        "firstName":["Json2"],
        "eduPersonAffiliation":["employee", "student"]
    }
}

REST

Retrieve attributes from a REST endpoint. RESTful settings for this feature are available here under the configuration key cas.authn.attributeRepository.rest[0].

The authenticating user id is passed in form of a request parameter under username. The response is expected to be a JSON map as such:

1
2
3
4
5
{
  "name" : "JohnSmith",
  "age" : 29,
  "messages": ["msg 1", "msg 2", "msg 3"]
}

Ruby/Python/Javascript/Groovy

Similar to the Groovy option but more versatile, this option takes advantage of Java’s native scripting API to invoke Groovy, Python or Javascript scripting engines to compile a pre-defined script to resolve attributes. The following settings are relevant:

1
2
3
4
# cas.authn.attributeRepository.script[0].location=file:/etc/cas/script.groovy
# cas.authn.attributeRepository.script[0].order=0
# cas.authn.attributeRepository.script[0].caseInsensitive=false
# cas.authn.attributeRepository.script[0].engineName=js|groovy|ruby|python

While Javascript and Groovy should be natively supported by CAS, Python scripts may need to massage the CAS configuration to include the Python modules. Ruby scripts are supported via JRuby

The Groovy script may be defined as:

1
2
3
4
5
6
7
8
9
import java.util.*

Map<String, List<Object>> run(final Object... args) {
    def uid = args[0]
    def logger = args[1]

    logger.debug("Groovy things are happening just fine with UID: {}",uid)
    return[username:[uid], likes:["cheese", "food"], id:[1234,2,3,4,5], another:"attribute"]
}

The Javascript script may be defined as:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function run(uid, logger) {
    print("Things are happening just fine")
    logger.warn("Javascript called with UID: {}",uid);

    // If you want to call back into Java, this is one way to do so
    var javaObj = new JavaImporter(org.yourorgname.yourpackagename);
    with (javaObj) {
        var objFromJava = JavaClassInPackage.someStaticMethod(uid);
    }

    var map = {};
    map["attr_from_java"] = objFromJava.getSomething();
    map["username"] = uid;
    map["likes"] = "cheese";
    map["id"] = [1234,2,3,4,5];
    map["another"] = "attribute";

    return map;
}

JDBC

Retrieve attributes from a JDBC source. Database settings for this feature are available here under the configuration key cas.authn.attributeRepository.jdbc[0].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# cas.authn.attributeRepository.jdbc[0].attributes.uid=uid
# cas.authn.attributeRepository.jdbc[0].attributes.displayName=displayName
# cas.authn.attributeRepository.jdbc[0].attributes.cn=commonName
# cas.authn.attributeRepository.jdbc[0].attributes.affiliation=groupMembership

# cas.authn.attributeRepository.jdbc[0].singleRow=true
# cas.authn.attributeRepository.jdbc[0].order=0
# cas.authn.attributeRepository.jdbc[0].requireAllAttributes=true
# cas.authn.attributeRepository.jdbc[0].caseCanonicalization=NONE|LOWER|UPPER
# cas.authn.attributeRepository.jdbc[0].queryType=OR|AND

# Used only when there is a mapping of many rows to one user
# cas.authn.attributeRepository.jdbc[0].columnMappings.columnAttrName1=columnAttrValue1
# cas.authn.attributeRepository.jdbc[0].columnMappings.columnAttrName2=columnAttrValue2
# cas.authn.attributeRepository.jdbc[0].columnMappings.columnAttrName3=columnAttrValue3

# cas.authn.attributeRepository.jdbc[0].sql=SELECT * FROM table WHERE {0}
# cas.authn.attributeRepository.jdbc[0].username=uid

Grouper

This option reads all the groups from a Grouper instance for the given CAS principal and adopts them as CAS attributes under a grouperGroups multi-valued attribute. To learn more about this topic, please review this guide.

1
# cas.authn.attributeRepository.grouper[0].enabled=true

You will also need to ensure grouper.client.properties is available on the classpath (i.e. src/main/resources) with the following configured properties:

1
2
3
grouperClient.webService.url = http://192.168.99.100:32768/grouper-ws/servicesRest
grouperClient.webService.login = banderson
grouperClient.webService.password = password

Couchbase

This option will fetch attributes from a Couchbase database for a given CAS principal. To learn more about this topic, please review this guide. Database settings for this feature are available here under the configuration key cas.authn.attributeRepository.couchbase.

1
2
# cas.authn.attributeRepository.couchbase.usernameAttribute=username
# cas.authn.attributeRepository.couchbase.order=0

Shibboleth Integrations

To learn more about this topic, please review this guide.

1
# cas.authn.shibIdp.serverUrl=https://idp.example.org

Default Bundle

If you wish to release a default bundle of attributes to all applications, and you would rather not duplicate the same attribute per every service definition, then the following settings are relevant:

1
# cas.authn.attributeRepository.defaultAttributesToRelease=cn,givenName,uid,affiliation

To learn more about this topic, please review this guide.

Protocol Attributes

Defines whether CAS should include and release protocol attributes defined in the specification in addition to the principal attributes. By default all authentication attributes are released when protocol attributes are enabled for release. If you wish to restrict which authentication attributes get released, you can use the below settings to control authentication attributes more globally.

Protocol/authentication attributes may also be released conditionally on a per-service basis. To learn more about this topic, please review this guide.

1
2
3
4
# cas.authn.releaseProtocolAttributes=true

# cas.authn.authenticationAttributeRelease.onlyRelease=authenticationDate,isFromNewLogin
# cas.authn.authenticationAttributeRelease.neverRelease=

Principal Resolution

In the event that a separate resolver is put into place, control how the final principal should be constructed by default. Principal resolution and Person Directory settings for this feature are available here under the configuration key cas.personDirectory.

Authentication Policy

To learn more about this topic, please review this guide.

Global authentication policy that is applied when CAS attempts to vend and validate tickets.

1
# cas.authn.policy.requiredHandlerAuthenticationPolicyEnabled=false

Any

Satisfied if any handler succeeds. Supports a tryAll flag to avoid short circuiting and try every handler even if one prior succeeded.

1
# cas.authn.policy.any.tryAll=false

All

Satisfied if and only if all given credentials are successfully authenticated. Support for multiple credentials is new in CAS and this handler would only be acceptable in a multi-factor authentication situation.

1
# cas.authn.policy.all.enabled=true

Unique Principal

Satisfied if and only if the requesting principal has not already authenticated with CAS. Otherwise the authentication event is blocked, preventing multiple logins.

Usage Warning

Activating this policy is not without cost, as CAS needs to query the ticket registry and all tickets present to determine whether the current user has established an authentication session anywhere. This will surely add a performance burden to the deployment. Use with care.

1
# cas.authn.policy.uniquePrincipal.enabled=true

Not Prevented

Satisfied if and only if the authentication event is not blocked by a PreventedException.

1
# cas.authn.policy.notPrevented.enabled=true

Required

Satisfied if and only if a specified handler successfully authenticates its credential.

1
2
3
# cas.authn.policy.req.tryAll=false
# cas.authn.policy.req.handlerName=handlerName
# cas.authn.policy.req.enabled=true

Groovy

Execute a groovy script to detect authentication policy.

1
# cas.authn.policy.groovy[0].script=file:/etc/cas/config/account.groovy

The script may be designed as:

1
2
3
4
5
6
7
8
9
10
11
12
13
import java.util.*
import org.apereo.cas.authentication.exceptions.*
import javax.security.auth.login.*

def Exception run(final Object... args) {
    def principal = args[0]
    def logger = args[1]

    if (conditionYouMayDesign() == true) {
        return new AccountDisabledException()
    }
    return null;
}

REST

Contact a REST endpoint via POST to detect authentication policy. The message body contains the CAS authenticated principal that can be used to examine account status and policy.

1
# cas.authn.policy.rest[0].endpoint=https://account.example.org/endpoint
Code Result
200 Successful authentication.
403, 405 Produces a AccountDisabledException
404 Produces a AccountNotFoundException
423 Produces a AccountLockedException
412 Produces a AccountExpiredException
428 Produces a AccountPasswordMustChangeException
Other Produces a FailedLoginException

Authentication Throttling

CAS provides a facility for limiting failed login attempts to support password guessing and related abuse scenarios. To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
# cas.authn.throttle.usernameParameter=username
# cas.authn.throttle.schedule.startDelay=PT10S
# cas.authn.throttle.schedule.repeatInterval=PT30S
# cas.authn.throttle.appcode=CAS

# cas.authn.throttle.failure.threshold=100
# cas.authn.throttle.failure.code=AUTHENTICATION_FAILED
# cas.authn.throttle.failure.rangeSeconds=60

Database

Queries the data source used by the CAS audit facility to prevent successive failed login attempts for a particular username from the same IP address. Database settings for this feature are available here under the configuration key cas.authn.throttle.jdbc.

1
2
# cas.authn.throttle.jdbc.auditQuery=SELECT AUD_DATE FROM COM_AUDIT_TRAIL WHERE AUD_CLIENT_IP = ? AND AUD_USER = ? \
#                                    AND AUD_ACTION = ? AND APPLIC_CD = ? AND AUD_DATE >= ? ORDER BY AUD_DATE DESC

Adaptive Authentication

Control how CAS authentication should adapt itself to incoming client requests. To learn more about this topic, please review this guide.

1
2
3
4
5
# cas.authn.adaptive.rejectCountries=United.+
# cas.authn.adaptive.rejectBrowsers=Gecko.+
# cas.authn.adaptive.rejectIpAddresses=127.+

# cas.authn.adaptive.requireMultifactor.mfa-duo=127.+|United.+|Gecko.+

Adaptive authentication can also react to specific times in order to trigger multifactor authentication.

1
2
3
4
# cas.authn.adaptive.requireTimedMultifactor[0].providerId=mfa-duo
# cas.authn.adaptive.requireTimedMultifactor[0].onOrAfterHour=20
# cas.authn.adaptive.requireTimedMultifactor[0].onOrBeforeHour=7
# cas.authn.adaptive.requireTimedMultifactor[0].onDays=Saturday,Sunday

Surrogate Authentication

Authenticate on behalf of another user. To learn more about this topic, please review this guide.

1
# cas.authn.surrogate.separator=+

Principal resolution and Person Directory settings for this feature are available here under the configuration key cas.authn.surrogate.principal.

Static Surrogate Accounts

1
2
# cas.authn.surrogate.simple.surrogates.casuser=jsmith,jsmith2
# cas.authn.surrogate.simple.surrogates.casuser2=jsmith4,jsmith2

JSON Surrogate Accounts

1
# cas.authn.surrogate.json.location=file:/etc/cas/config/surrogates.json

LDAP Surrogate Accounts

LDAP settings for this feature are available here under the configuration key cas.authn.surrogate.ldap.

1
2
3
# cas.authn.surrogate.ldap.surrogateSearchFilter=(&(principal={user})(memberOf=cn=edu:example:cas:something:{user},dc=example,dc=edu))
# cas.authn.surrogate.ldap.memberAttributeName=memberOf
# cas.authn.surrogate.ldap.memberAttributeValueRegex=cn=edu:example:cas:something:([^,]+),.+

JDBC Surrogate Accounts

Database settings for this feature are available here under the configuration key cas.authn.surrogate.jdbc.

1
2
# cas.authn.surrogate.jdbc.surrogateSearchQuery=SELECT COUNT(*) FROM surrogate WHERE username=?
# cas.authn.surrogate.jdbc.surrogateAccountQuery=SELECT surrogate_user AS surrogateAccount FROM surrogate WHERE username=?

REST Surrogate Accounts

RESTful settings for this feature are available here under the configuration key cas.authn.surrogate.rest.

Notifications

Email notifications settings for this feature are available here under the configuration key cas.authn.surrogate. SMS notifications settings for this feature are available here under the configuration key cas.authn.surrogate.

Risk-based Authentication

Evaluate suspicious authentication requests and take action. To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# cas.authn.adaptive.risk.threshold=0.6
# cas.authn.adaptive.risk.daysInRecentHistory=30

# cas.authn.adaptive.risk.ip.enabled=false

# cas.authn.adaptive.risk.agent.enabled=false

# cas.authn.adaptive.risk.geoLocation.enabled=false

# cas.authn.adaptive.risk.dateTime.enabled=false
# cas.authn.adaptive.risk.dateTime.windowInHours=2

# cas.authn.adaptive.risk.response.blockAttempt=false

# cas.authn.adaptive.risk.response.mfaProvider=
# cas.authn.adaptive.risk.response.riskyAuthenticationAttribute=triggeredRiskBasedAuthentication

Email notifications settings for this feature are available here under the configuration key cas.authn.adaptive.risk.response. SMS notifications settings for this feature are available here under the configuration key cas.authn.adaptive.risk.response.

Passwordless Authentication

To learn more about this topic, please review this guide.

Account Stores

1
2
# cas.authn.passwordless.accounts.simple.casuser=cas@example.org
# cas.authn.passwordless.accounts.groovy.location=file:/etc/cas/config/pwdless.groovy

RESTful settings for this feature are available here under the configuration key cas.authn.passwordless.accounts.rest.

Token Management

1
# cas.authn.passwordless.accounts.expireInSeconds=180

RESTful settings for this feature are available here under the configuration key cas.authn.passwordless.tokens.rest. The signing key and the encryption key are both JWKs of size 512 and 256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.passwordless.tokens.rest.

Email notifications settings for this feature are available here under the configuration key cas.authn.passwordless.tokens. SMS notifications settings for this feature are available here under the configuration key cas.authn.passwordless.tokens.

Email Submissions

Email notifications settings are available here.

SMS Messaging

To learn more about this topic, please review this guide.

Twilio

Send text messaging using Twilio.

1
2
# cas.smsProvider.twilio.accountId=
# cas.smsProvider.twilio.token=

TextMagic

Send text messaging using TextMagic.

1
2
3
# cas.smsProvider.textMagic.username=
# cas.smsProvider.textMagic.token=
# cas.smsProvider.textMagic.url=

Clickatell

Send text messaging using Clickatell.

1
2
# cas.smsProvider.clickatell.serverUrl=https://platform.clickatell.com/messages
# cas.smsProvider.clickatell.token=

Amazon SNS

Send text messaging using Amazon SNS.

1
2
3
# cas.smsProvider.sns.senderId=
# cas.smsProvider.sns.maxPrice=
# cas.smsProvider.sns.smsType=Transactional

AWS settings for this feature are available here under the configuration key cas.smsProvider.sns.

GeoTracking

To learn more about this topic, please review this guide.

GoogleMaps GeoTracking

Used to geo-profile authentication events.

1
2
3
4
5
# cas.googleMaps.apiKey=
# cas.googleMaps.clientId=
# cas.googleMaps.clientSecret=
# cas.googleMaps.connectTimeout=3000
# cas.googleMaps.googleAppsEngine=false

Maxmind GeoTracking

Used to geo-profile authentication events.

1
2
# cas.maxmind.cityDatabase=file:/etc/cas/maxmind/GeoLite2-City.mmdb
# cas.maxmind.countryDatabase=file:/etc/cas/maxmind/GeoLite2-Country.mmdb

Cassandra Authentication

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# cas.authn.cassandra.usernameAttribute=
# cas.authn.cassandra.passwordAttribute=
# cas.authn.cassandra.tableName=
# cas.authn.cassandra.username=
# cas.authn.cassandra.password=
# cas.authn.cassandra.query=SELECT * FROM %s WHERE %s = ? ALLOW FILTERING

# cas.authn.cassandra.protocolVersion=V1|V2|V3|V4
# cas.authn.cassandra.keyspace=
# cas.authn.cassandra.contactPoints=localhost1,localhost2
# cas.authn.cassandra.localDc=
# cas.authn.cassandra.shuffleReplicas=true
# cas.authn.cassandra.retryPolicy=DEFAULT_RETRY_POLICY|DOWNGRADING_CONSISTENCY_RETRY_POLICY|FALLTHROUGH_RETRY_POLICY
# cas.authn.cassandra.compression=LZ4|SNAPPY|NONE
# cas.authn.cassandra.consistencyLevel=ANY|ONE|TWO|THREE|QUORUM|LOCAL_QUORUM|ALL|EACH_QUORUM|LOCAL_SERIAL|SERIAL|LOCAL_ONE
# cas.authn.cassandra.serialConsistencyLevel=ANY|ONE|TWO|THREE|QUORUM|LOCAL_QUORUM|ALL|EACH_QUORUM|LOCAL_SERIAL|SERIAL|LOCAL_ONE
# cas.authn.cassandra.maxConnections=10
# cas.authn.cassandra.coreConnections=1
# cas.authn.cassandra.maxRequestsPerConnection=1024
# # cas.authn.cassandra.connectTimeoutMillis=5000
cas.authn.cassandra.readTimeoutMillis=5000
# cas.authn.cassandra.port=9042
# cas.authn.cassandra.name=
# cas.authn.cassandra.order=

Digest Authentication

To learn more about this topic, please review this guide.

1
2
3
4
5
# cas.authn.digest.users.casuser=3530292c24102bac7ced2022e5f1036a
# cas.authn.digest.users.anotheruser=7530292c24102bac7ced2022e5f1036b
# cas.authn.digest.realm=CAS
# cas.authn.digest.name=
# cas.authn.digest.authenticationMethod=auth

Radius Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.radius.

Password encoding settings for this feature are available here under the configuration key cas.authn.radius.

Radius settings for this feature are available here under the configuration key cas.authn.radius.

1
# cas.authn.radius.name=

File (Whitelist) Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.file.

Password encoding settings for this feature are available here under the configuration key cas.authn.file.

1
2
3
# cas.authn.file.separator=::
# cas.authn.file.filename=file:///path/to/users/file
# cas.authn.file.name=

JSON (Whitelist) Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.json.

Password encoding settings for this feature are available here under the configuration key cas.authn.json.

Password policy settings for this feature are available here under the configuration key cas.authn.json.passwordPolicy.

1
2
# cas.authn.json.location=file:///path/to/users/file.json
# cas.authn.json.name=

Reject Users (Blacklist) Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.reject.

Password encoding settings for this feature are available here under the configuration key cas.authn.reject.

1
2
# cas.authn.reject.users=user1,user2
# cas.authn.reject.name=

Database Authentication

To learn more about this topic, please review this guide.

Query Database Authentication

Authenticates a user by comparing the user password (which can be encoded with a password encoder) against the password on record determined by a configurable database query.

Database settings for this feature are available here under the configuration key cas.authn.jdbc.query[0].

Principal transformation settings for this feature are available here under the configuration key cas.authn.jdbc.query[0].

Password encoding settings for this feature are available here under the configuration key cas.authn.jdbc.query[0].

1
2
3
4
5
6
7
8
9
# cas.authn.jdbc.query[0].credentialCriteria=
# cas.authn.jdbc.query[0].name=
# cas.authn.jdbc.query[0].order=0

# cas.authn.jdbc.query[0].sql=SELECT * FROM table WHERE name=?
# cas.authn.jdbc.query[0].fieldPassword=password
# cas.authn.jdbc.query[0].fieldExpired=
# cas.authn.jdbc.query[0].fieldDisabled=
# cas.authn.jdbc.query[0].principalAttributeList=sn,cn:commonName,givenName

Search Database Authentication

Searches for a user record by querying against a username and password; the user is authenticated if at least one result is found.

Database settings for this feature are available here under the configuration key cas.authn.jdbc.search[0].

Principal transformation settings for this feature are available here under the configuration key cas.authn.jdbc.search[0].

Password encoding settings for this feature are available here under the configuration key cas.authn.jdbc.search[0].

1
2
3
4
5
6
# cas.authn.jdbc.search[0].fieldUser=
# cas.authn.jdbc.search[0].tableUsers=
# cas.authn.jdbc.search[0].fieldPassword=
# cas.authn.jdbc.search[0].credentialCriteria=
# cas.authn.jdbc.search[0].name=
# cas.authn.jdbc.search[0].order=0

Bind Database Authentication

Authenticates a user by attempting to create a database connection using the username and (hashed) password.

Database settings for this feature are available here under the configuration key cas.authn.jdbc.bind[0].

Principal transformation settings for this feature are available here under the configuration key cas.authn.jdbc.bind[0].

Password encoding settings for this feature are available here under the configuration key cas.authn.jdbc.bind[0].

1
2
3
# cas.authn.jdbc.bind[0].credentialCriteria=
# cas.authn.jdbc.bind[0].name=
# cas.authn.jdbc.bind[0].order=0

Encode Database Authentication

A JDBC querying handler that will pull back the password and the private salt value for a user and validate the encoded password using the public salt value. Assumes everything is inside the same database table. Supports settings for number of iterations as well as private salt.

This password encoding method combines the private Salt and the public salt which it prepends to the password before hashing. If multiple iterations are used, the bytecode hash of the first iteration is rehashed without the salt values. The final hash is converted to hex before comparing it to the database value.

Database settings for this feature are available here under the configuration key cas.authn.jdbc.encode[0].

Principal transformation settings for this feature are available here under the configuration key cas.authn.jdbc.encode[0].

Password encoding settings for this feature are available here under the configuration key cas.authn.jdbc.encode[0].

1
2
3
4
5
6
7
8
9
10
11
12
13
# cas.authn.jdbc.encode[0].numberOfIterations=0
# cas.authn.jdbc.encode[0].numberOfIterationsFieldName=numIterations
# cas.authn.jdbc.encode[0].saltFieldName=salt
# cas.authn.jdbc.encode[0].staticSalt=
# cas.authn.jdbc.encode[0].sql=
# cas.authn.jdbc.encode[0].algorithmName=
# cas.authn.jdbc.encode[0].passwordFieldName=password
# cas.authn.jdbc.encode[0].expiredFieldName=
# cas.authn.jdbc.encode[0].disabledFieldName=

# cas.authn.jdbc.encode[0].credentialCriteria=
# cas.authn.jdbc.encode[0].name=
# cas.authn.jdbc.encode[0].order=0

MongoDb Authentication

To learn more about this topic, please review this guide. Principal transformation settings for this feature are available here under the configuration key cas.authn.mongo. Password encoding settings for this feature are available here under the configuration key cas.authn.mongo.

1
2
3
4
5
6
# cas.authn.mongo.mongoHostUri=mongodb://uri
# cas.authn.mongo.usernameAttribute=username
# cas.authn.mongo.attributes=
# cas.authn.mongo.passwordAttribute=password
# cas.authn.mongo.collectionName=users
# cas.authn.mongo.name=

LDAP Authentication

CAS authenticates a username/password against an LDAP directory such as Active Directory or OpenLDAP. There are numerous directory architectures and we provide configuration for four common cases.

Note that CAS will automatically create the appropriate components internally based on the settings specified below. If you wish to authenticate against more than one LDAP server, simply increment the index and specify the settings for the next LDAP server.

Note: Attributes retrieved as part of LDAP authentication are merged with all attributes retrieved from other attribute repository sources, if any. Attributes retrieved directly as part of LDAP authentication trump all other attributes.

To learn more about this topic, please review this guide. LDAP settings for this feature are available here under the configuration key cas.authn.ldap[0].

1
2
3
4
5
6
7
8
9
10
11
12
13
#
# Define attributes to be retrieved from LDAP as part of the same authentication transaction
# The left-hand size notes the source while the right-hand size indicate an optional renaming/remapping
# of the attribute definition. The same attribute name is allowed to be mapped multiple times to
# different attribute names.
#
# cas.authn.ldap[0].principalAttributeList=sn,cn:commonName,givenName,eduPersonTargettedId:SOME_IDENTIFIER

# cas.authn.ldap[0].collectDnAttribute=false
# cas.authn.ldap[0].principalDnAttributeName=principalLdapDn
# cas.authn.ldap[0].allowMultiplePrincipalAttributeValues=true
# cas.authn.ldap[0].allowMissingPrincipalAttributeValue=true
# cas.authn.ldap[0].credentialCriteria=

LDAP Password Policy

LDAP password policy settings for this feature are available here under the configuration key cas.authn.ldap[0].passwordPolicy.

LDAP Password Encoding & Principal Transformation

Principal transformation settings for this feature are available here under the configuration key cas.authn.ldap[0].

Password encoding settings for this feature are available here under the configuration key cas.authn.ldap[0].

REST Authentication

This allows the CAS server to reach to a remote REST endpoint via a POST. To learn more about this topic, please review this guide. Password encoding settings for this feature are available here under the configuration key cas.authn.rest.

1
2
# cas.authn.rest.uri=https://...
# cas.authn.rest.name=

Google Apps Authentication

Authenticate via CAS into Google Apps services and applications. To learn more about this topic, please review this guide.

1
2
3
# cas.googleApps.publicKeyLocation=file:/etc/cas/public.key
# cas.googleApps.keyAlgorithm=RSA
# cas.googleApps.privateKeyLocation=file:/etc/cas/private.key

OpenID Authentication

Allow CAS to become an OpenID authentication provider. To learn more about this topic, please review this guide.

Principal resolution and Person Directory settings for this feature are available here under the configuration key cas.authn.openid.principal.

1
2
# cas.authn.openid.enforceRpId=false
# cas.authn.openid.name=

SPNEGO Authentication

To learn more about this topic, please review this guide.

Principal resolution and Person Directory settings for this feature are available here under the configuration key cas.authn.spnego.principal.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# cas.authn.spnego.kerberosConf=
# cas.authn.spnego.loginConf=
# cas.authn.spnego.kerberosRealm=EXAMPLE.COM

# cas.authn.spnego.jcifsUsername=
# cas.authn.spnego.jcifsDomainController=
# cas.authn.spnego.jcifsDomain=
# cas.authn.spnego.jcifsServicePassword=
# cas.authn.spnego.jcifsPassword=

# cas.authn.spnego.mixedModeAuthentication=false
# cas.authn.spnego.cachePolicy=600
# cas.authn.spnego.timeout=300000
# cas.authn.spnego.jcifsServicePrincipal=HTTP/cas.example.com@EXAMPLE.COM
# cas.authn.spnego.jcifsNetbiosWins=
# cas.authn.spnego.ntlmAllowed=true
# cas.authn.spnego.hostNamePatternString=.+
# cas.authn.spnego.useSubjectCredsOnly=false
# cas.authn.spnego.supportedBrowsers=MSIE,Trident,Firefox,AppleWebKit
# cas.authn.spnego.dnsTimeout=2000
# cas.authn.spnego.hostNameClientActionStrategy=hostnameSpnegoClientAction
# cas.authn.spnego.kerberosKdc=172.10.1.10
# cas.authn.spnego.alternativeRemoteHostAttribute=alternateRemoteHeader
# cas.authn.spnego.ipsToCheckPattern=127.+
# cas.authn.spnego.kerberosDebug=true
# cas.authn.spnego.send401OnAuthenticationFailure=true
# cas.authn.spnego.ntlm=false
# cas.authn.spnego.principalWithDomainName=false
# cas.authn.spnego.spnegoAttributeName=distinguishedName
# cas.authn.spnego.name=

SPNEGO LDAP Integration

LDAP settings for this feature are available here under the configuration key cas.authn.spnego.ldap.

NTLM Authentication

1
2
3
4
# cas.authn.ntlm.includePattern=
# cas.authn.ntlm.loadBalance=true
# cas.authn.ntlm.domainController=
# cas.authn.ntlm.name=

JAAS Authentication

To learn more about this topic, please review this guide. Principal transformation settings for this feature are available here under the configuration key cas.authn.jaas[0]. Password encoding settings for this feature are available here under the configuration key cas.authn.jaas[0].

1
2
3
4
5
6
7
8
# cas.authn.jaas[0].realm=CAS
# cas.authn.jaas[0].kerberosKdcSystemProperty=
# cas.authn.jaas[0].kerberosRealmSystemProperty=
# cas.authn.jaas[0].name=
# cas.authn.jaas[0].order=
# cas.authn.jaas[0].credentialCriteria=
# cas.authn.jaas[0].loginConfigType=JavaLoginConfig
# cas.authn.jaas[0].loginConfigurationFile=/path/to/jaas.conf

Principal resolution and Person Directory settings for this feature are available here under the configuration key cas.authn.jaas[0].principal.

Password policy settings for this feature are available here under the configuration key cas.authn.jaas[0].passwordPolicy.

GUA Authentication

To learn more about this topic, please review this guide.

LDAP Repository

LDAP settings for this feature are available here under the configuration key cas.authn.gua.ldap.

1
# cas.authn.gua.ldap.imageAttribute=userImageIdentifier

Static Resource Repository

1
# cas.authn.gua.resource.location=file:/path/to/image.jpg

JWT/Token Authentication

To learn more about this topic, please review this guide. Principal transformation settings for this feature are available here under the configuration key cas.authn.token.

1
# cas.authn.token.name=

JWT Tickets

Allow CAS tickets through various protocol channels to be created as JWTs. See this guide or this guide for more info.

1
2
# cas.authn.token.crypto.encryptionEnabled=true
# cas.authn.token.crypto.signingEnabled=true

The signing key and the encryption key are both JWKs of size 512 and 256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.token.

Couchbase Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.couchbase.

Password encoding settings for this feature are available here under the configuration key cas.authn.couchbase.

Database settings for this feature are available here under the configuration key cas.authn.couchbase.

1
2
3
4
5
# cas.authn.couchbase.usernameAttribute=username
# cas.authn.couchbase.passwordAttribute=psw

# cas.authn.couchbase.name=
# cas.authn.couchbase.order=

Amazon Cloud Directory Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.cloudDirectory. Password encoding settings for this feature are available here under the configuration key cas.authn.cloudDirectory.

AWS settings for this feature are available here under the configuration key cas.authn.cloudDirectory.

1
2
3
4
5
6
7
8
9
10
# cas.authn.cloudDirectory.directoryArn=
# cas.authn.cloudDirectory.schemaArn=
# cas.authn.cloudDirectory.facetName=

# cas.authn.cloudDirectory.usernameAttributeName=
# cas.authn.cloudDirectory.passwordAttributeName=
# cas.authn.cloudDirectory.usernameIndexPath=

# cas.authn.cloudDirectory.name=
# cas.authn.cloudDirectory.order=

Remote Address Authentication

To learn more about this topic, please review this guide.

1
2
# cas.authn.remoteAddress.ipAddressRange=
# cas.authn.remoteAddress.name=

Accept Users Authentication

Default Credentials

To test the default authentication scheme in CAS, use casuser and Mellon as the username and password respectively. These are automatically configured via the static authentication handler, and MUST be removed from the configuration prior to production rollouts.

Principal transformation settings for this feature are available here under the configuration key cas.authn.accept. Password policy settings for this feature are available here under the configuration key cas.authn.accept.passwordPolicy. Password encoding settings for this feature are available here under the configuration key cas.authn.accept.

1
2
3
# cas.authn.accept.users=
# cas.authn.accept.name=
# cas.authn.accept.credentialCriteria=

X509 Authentication

To learn more about this topic, please review this guide.

Principal Resolution

X.509 principal resolution can act on the following principal types:

Type Description
SERIAL_NO Resolve the principal by the serial number with a configurable radix, ranging from 2 to 36. If radix is 16, then the serial number could be filled with leading zeros to even the number of digits.
SERIAL_NO_DN Resolve the principal by serial number and issuer dn.
SUBJECT Resolve the principal by extracting one or more attribute values from the certificate subject DN and combining them with intervening delimiters.
SUBJECT_ALT_NAME Resolve the principal by the subject alternative name extension.
SUBJECT_DN The default type; Resolve the principal by the certificate’s subject dn.
CN_EDIPI Resolve the principal by the Electronic Data Interchange Personal Identifier (EDIPI) from the Common Name.

CRL Fetching / Revocation

CAS provides a flexible policy engine for certificate revocation checking. This facility arose due to lack of configurability in the revocation machinery built into the JSSE.

Available policies cover the following events:

  • CRL Expiration
  • CRL Unavailability

In either event, the following options are available:

Type Description
ALLOW Allow authentication to proceed.
DENY Deny authentication and block.
THRESHOLD Applicable to CRL expiration, throttle the request whereby expired data is permitted up to a threshold period of time but not afterward.

Revocation certificate checking can be carried out in one of the following ways:

Type Description
NONE No revocation is performed.
CRL The CRL URI(s) mentioned in the certificate cRLDistributionPoints extension field. Caches are available to prevent excessive IO against CRL endpoints; CRL data is fetched if does not exist in the cache or if it is expired.
RESOURCE A CRL hosted at a fixed location. The CRL is fetched at periodic intervals and cached.

To fetch CRLs, the following options are available:

Type Description
RESOURCE By default, all revocation checks use fixed resources to fetch the CRL resource from the specified location.
LDAP A CRL resource may be fetched from a pre-configured attribute, in the event that the CRL resource location is an LDAP URI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# cas.authn.x509.crlExpiredPolicy=DENY|ALLOW|THRESHOLD
# cas.authn.x509.crlUnavailablePolicy=DENY|ALLOW|THRESHOLD
# cas.authn.x509.crlResourceExpiredPolicy=DENY|ALLOW|THRESHOLD
# cas.authn.x509.crlResourceUnavailablePolicy=DENY|ALLOW|THRESHOLD

# cas.authn.x509.revocationChecker=NONE|CRL|RESOURCE
# cas.authn.x509.crlFetcher=RESOURCE|LDAP

# cas.authn.x509.crlResources[0]=file:/...

# cas.authn.x509.cacheMaxElementsInMemory=1000
# cas.authn.x509.cacheDiskOverflow=false
# cas.authn.x509.cacheEternal=false
# cas.authn.x509.cacheTimeToLiveSeconds=7200
# cas.authn.x509.cacheTimeToIdleSeconds=1800

# cas.authn.x509.checkKeyUsage=false
# cas.authn.x509.revocationPolicyThreshold=172800

# cas.authn.x509.regExSubjectDnPattern=.+
# cas.authn.x509.regExTrustedIssuerDnPattern=.+

# cas.authn.x509.name=
# cas.authn.x509.principalDescriptor=
# cas.authn.x509.principalSNRadix=10
# cas.authn.x509.principalHexSNZeroPadding=false
# cas.authn.x509.maxPathLength=1
# cas.authn.x509.throwOnFetchFailure=false
# cas.authn.x509.valueDelimiter=,
# cas.authn.x509.checkAll=false
# cas.authn.x509.requireKeyUsage=false
# cas.authn.x509.serialNumberPrefix=SERIALNUMBER=
# cas.authn.x509.refreshIntervalSeconds=3600
# cas.authn.x509.maxPathLengthAllowUnspecified=false

X509 Certificate Extraction

These settings can be used to turn on and configure CAS to extract an X509 certificate from a base64 encoded certificate on a HTTP request header (placed there by a proxy in front of CAS). If this is set to true, it is important that the proxy cannot be bypassed by users and that the proxy ensures the header never originates from the browser.

1
2
cas.authn.x509.extractCert=false
cas.authn.x509.sslHeaderName=ssl_client_cert

The specific parsing logic for the certificate is compatible with the Tomcat SSLValve which can work with headers set by Apache HTTPD, Nginx, Haproxy, BigIP F5, etc.

X509 Principal Resolution

1
cas.authn.x509.principalType=SERIAL_NO|SERIAL_NO_DN|SUBJECT|SUBJECT_ALT_NAME|SUBJECT_DN

Principal resolution and Person Directory settings for this feature are available here under the configuration key cas.authn.x509.principal.

X509 LDAP Integration

LDAP settings for this feature are available here under the configuration key cas.authn.x509.ldap.

Syncope Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.syncope.

Password encoding settings for this feature are available here under the configuration key cas.authn.syncope.

1
2
3
# cas.authn.syncope.domain=Master
# cas.authn.syncope.url=https://idm.instance.org/syncope
# cas.authn.syncope.name=

Shiro Authentication

To learn more about this topic, please review this guide.

Principal transformation settings for this feature are available here under the configuration key cas.authn.shiro.

Password encoding settings for this feature are available here under the configuration key cas.authn.shiro.

1
2
3
4
# cas.authn.shiro.requiredPermissions=value1,value2,...
# cas.authn.shiro.requiredRoles=value1,value2,...
# cas.authn.shiro.location=classpath:shiro.ini
# cas.authn.shiro.name=

Trusted Authentication

To learn more about this topic, please review this guide. Principal resolution and Person Directory settings for this feature are available here under the configuration key cas.authn.trusted.

1
2
3
# cas.authn.trusted.name=

# cas.authn.trusted.remotePrincipalHeader=

WS-Fed Delegated Authentication

To learn more about this topic, please review this guide.

Attribute Types

In order to construct the final authenticated principal, CAS may be configured to use the following strategies when collecting principal attributes:

Type Description
CAS Use attributes provided by CAS’ own attribute resolution mechanics and repository.
WSFED Use attributes provided by the delegated WS-Fed instance.
BOTH Combine both the above options, where CAS attribute repositories take precedence over WS-Fed.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# cas.authn.wsfed[0].identityProviderUrl=https://adfs.example.org/adfs/ls/
# cas.authn.wsfed[0].identityProviderIdentifier=https://adfs.example.org/adfs/services/trust
# cas.authn.wsfed[0].relyingPartyIdentifier=urn:cas:localhost
# cas.authn.wsfed[0].attributesType=WSFED
# cas.authn.wsfed[0].signingCertificateResources=classpath:adfs-signing.crt
# cas.authn.wsfed[0].tolerance=10000
# cas.authn.wsfed[0].identityAttribute=upn
# cas.authn.wsfed[0].attributeResolverEnabled=true
# cas.authn.wsfed[0].autoRedirect=true
# cas.authn.wsfed[0].name=

# cas.authn.wsfed[0].principal.principalAttribute=
# cas.authn.wsfed[0].principal.returnNull=false

# Private/Public keypair used to decrypt assertions, if any.
# cas.authn.wsfed[0].encryptionPrivateKey=classpath:private.key
# cas.authn.wsfed[0].encryptionCertificate=classpath:certificate.crt
# cas.authn.wsfed[0].encryptionPrivateKeyPassword=NONE

Signing & Encryption

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under cas.authn.wsfed[0].cookie.

Multifactor Authentication

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Activate MFA globally for all, regardless of other settings
# cas.authn.mfa.globalProviderId=mfa-duo

# Activate MFA globally based on authentication metadata attributes
# cas.authn.mfa.globalAuthenticationAttributeNameTriggers=memberOf,eduPersonPrimaryAffiliation
# cas.authn.mfa.globalAuthenticationAttributeValueRegex=faculty|staff

# Activate MFA globally based on principal attributes
# cas.authn.mfa.globalPrincipalAttributeNameTriggers=memberOf,eduPersonPrimaryAffiliation

# Specify the regular expression pattern to trigger multifactor when working with a single provider.
# Comment out the setting when working with multiple multifactor providers
# cas.authn.mfa.globalPrincipalAttributeValueRegex=faculty|staff

# Activate MFA globally based on principal attributes and a groovy-based predicate
# cas.authn.mfa.globalPrincipalAttributePredicate=file:/etc/cas/PredicateExample.groovy

# Activate MFA based on a custom REST API/endpoint
# cas.authn.mfa.restEndpoint=https://entity.example.org/mfa

# Activate MFA based on a Groovy script
# cas.authn.mfa.groovyScript=file:/etc/cas/mfaGroovyTrigger.groovy

# Activate MFA based on Internet2's Grouper
# cas.authn.mfa.grouperGroupField=NAME|EXTENSION|DISPLAY_NAME|DISPLAY_EXTENSION

# Activate MFA based on an optional request parameter
# cas.authn.mfa.requestParameter=authn_method

# Activate MFA based on an optional request header
# cas.authn.mfa.requestHeader=authn_method

# Activate MFA based on an optional request/session attribute
# cas.authn.mfa.sessionAttribute=authn_method

# Describe the global failure mode in case provider cannot be reached
# cas.authn.mfa.globalFailureMode=CLOSED

# Design the attribute chosen to communicate the authentication context
# cas.authn.mfa.authenticationContextAttribute=authnContextClass

# Identify the request content type for non-browser MFA requests
# cas.authn.mfa.contentType=application/cas

# Select MFA provider, if resolved more than one, via Groovy script
# cas.authn.mfa.providerSelectorGroovyScript=file:/etc/cas/mfaGroovySelector.groovy

Multifactor Trusted Device/Browser

To learn more about this topic, please review this guide.

1
2
3
4
# cas.authn.mfa.trusted.authenticationContextAttribute=isFromTrustedMultifactorAuthentication
# cas.authn.mfa.trusted.deviceRegistrationEnabled=true
# cas.authn.mfa.trusted.expiration=30
# cas.authn.mfa.trusted.timeUnit=SECONDS|MINUTES|HOURS|DAYS

Signing & Encryption

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.mfa.trusted.

JSON Storage

1
# cas.authn.mfa.trusted.json.location=file:/etc/cas/config/trusted-dev.json

JDBC Storage

Database settings for this feature are available here under the configuration key cas.authn.mfa.trusted.jpa.

MongoDb Storage

Configuration settings for this feature are available here under the configuration key cas.authn.mfa.trusted.

REST Storage

1
# cas.authn.mfa.trusted.rest.endpoint=https://api.example.org/trustedBrowser

Trusted Device Fingerprint

1
2
3
4
5
6
7
# cas.authn.mfa.trusted.deviceFingerprint.componentSeparator=@
# cas.authn.mfa.trusted.deviceFingerprint.cookie.enabled=true
# cas.authn.mfa.trusted.deviceFingerprint.cookie.order=1
# cas.authn.mfa.trusted.deviceFingerprint.clientIp.enabled=true
# cas.authn.mfa.trusted.deviceFingerprint.clientIp.order=2
# cas.authn.mfa.trusted.deviceFingerprint.userAgent.enabled=false
# cas.authn.mfa.trusted.deviceFingerprint.userAgent.order=3

The device fingerprint cookie component can be configured with the common cookie properties found here under the configuration key cas.authn.mfa.trusted.deviceFingerprint.cookie. The default cookie name is set to MFATRUSTED and the default maxAge is set to 2592000.

The device fingerprint cookie component supports signing & encryption. The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.mfa.trusted.deviceFingerprint.cookie.

Cleaner

A cleaner process is scheduled to run in the background to clean up expired and stale tickets. This section controls how that process should behave.

1
2
3
# cas.authn.mfa.trusted.cleaner.schedule.startDelay=10000
# cas.authn.mfa.trusted.cleaner.schedule.repeatInterval=60000
# cas.authn.mfa.trusted.cleaner.enabled=true

Google Authenticator

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
# cas.authn.mfa.gauth.issuer=
# cas.authn.mfa.gauth.label=

# cas.authn.mfa.gauth.windowSize=3
# cas.authn.mfa.gauth.codeDigits=6
# cas.authn.mfa.gauth.timeStepSize=30
# cas.authn.mfa.gauth.rank=0
# cas.authn.mfa.gauth.trustedDeviceEnabled=false
# cas.authn.mfa.gauth.name=

# cas.authn.mfa.gauth.cleaner.enabled=true
# cas.authn.mfa.gauth.cleaner.schedule.startDelay=20000
# cas.authn.mfa.gauth.cleaner.schedule.repeatInterval=60000

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.gauth.

Signing & Encryption

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.mfa.gauth.

Google Authenticator JSON

1
# cas.authn.mfa.gauth.json.location=file:/somewhere.json

Google Authenticator Rest

1
# cas.authn.mfa.gauth.rest.endpointUrl=https://somewhere.gauth.com

Google Authenticator MongoDb

Configuration settings for this feature are available here under the configuration key cas.authn.mfa.gauth. The following settings are additionally available for this feature:

1
# cas.authn.mfa.gauth.mongo.tokenCollection=MongoDbGoogleAuthenticatorTokenRepository

Google Authenticator JPA

Database settings for this feature are available here under the configuration key cas.authn.mfa.gauth.jpa.

YubiKey

To learn more about this topic, please review this guide.

1
2
3
4
5
6
# cas.authn.mfa.yubikey.clientId=
# cas.authn.mfa.yubikey.secretKey=
# cas.authn.mfa.yubikey.rank=0
# cas.authn.mfa.yubikey.apiUrls=
# cas.authn.mfa.yubikey.trustedDeviceEnabled=false
# cas.authn.mfa.yubikey.name=

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.yubikey.

YubiKey JSON Device Store

1
# cas.authn.mfa.yubikey.jsonFile=file:/etc/cas/deviceRegistrations.json

YubiKey Whitelist Device Store

1
2
# cas.authn.mfa.yubikey.allowedDevices.uid1=yubikeyPublicId1
# cas.authn.mfa.yubikey.allowedDevices.uid2=yubikeyPublicId2

YubiKey Registration Records Encryption and Signing

1
# cas.authn.mfa.yubikey.crypto.enabled=true

The signing key and the encryption key are both JWKs of size 512 and 256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.mfa.yubikey.

YubiKey JPA Device Store

Database settings for this feature are available here under the configuration key cas.authn.mfa.gauth.yubikey.

YubiKey MongoDb Device Store

Configuration settings for this feature are available here under the configuration key cas.authn.mfa.yubikey.

Radius OTP

To learn more about this topic, please review this guide.

1
2
3
4
# cas.authn.mfa.radius.rank=0
# cas.authn.mfa.radius.trustedDeviceEnabled=false
# cas.authn.mfa.radius.allowedAuthenticationAttempts=-1
# cas.authn.mfa.radius.name=

Radius settings for this feature are available here under the configuration key cas.authn.mfa.radius.

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.radius.

DuoSecurity

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
# cas.authn.mfa.duo[0].duoSecretKey=
# cas.authn.mfa.duo[0].rank=0
# cas.authn.mfa.duo[0].duoApplicationKey=
# cas.authn.mfa.duo[0].duoIntegrationKey=
# cas.authn.mfa.duo[0].duoApiHost=
# cas.authn.mfa.duo[0].trustedDeviceEnabled=false
# cas.authn.mfa.duo[0].id=mfa-duo
# cas.authn.mfa.duo[0].registrationUrl=https://registration.example.org/duo-enrollment
# cas.authn.mfa.duo[0].name=

The duoApplicationKey is a string, at least 40 characters long, that you generate and keep secret from Duo. You can generate a random string in Python with:

1
2
import os, hashlib
print hashlib.sha1(os.urandom(32)).hexdigest()

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.duo[0].

FIDO U2F

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
# cas.authn.mfa.u2f.rank=0
# cas.authn.mfa.u2f.name=

# cas.authn.mfa.u2f.expireRegistrations=30
# cas.authn.mfa.u2f.expireRegistrationsTimeUnit=SECONDS
# cas.authn.mfa.u2f.expireDevices=30
# cas.authn.mfa.u2f.expireDevicesTimeUnit=DAYS

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.u2f. The signing key and the encryption key are both JWKs of size 512 and 256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.mfa.u2f.

FIDO U2F JSON

1
# cas.authn.mfa.u2f.json.location=file:///etc/cas/config/u2fdevices.json

FIDO U2F Cleaner

1
2
3
# cas.authn.mfa.u2f.cleaner.schedule.enabled=true
# cas.authn.mfa.u2f.cleaner.schedule.startDelay=PT10S
# cas.authn.mfa.u2f.cleaner.schedule.repeatInterval=PT60S

FIDO U2F MongoDb

Common configuration settings for this feature are available here under the configuration key cas.authn.mfa.u2f.

FIDO U2F JPA

Database settings for this feature are available here under the configuration key cas.authn.mfa.u2f.jpa.

FIDO U2F REST

RESTful settings for this feature are available here under the configuration key cas.authn.mfa.u2f.rest.

FIDO U2F Groovy

1
# cas.authn.mfa.u2f.groovy.location=file:/etc/cas/config/fido.groovy

Swivel Secure

To learn more about this topic, please review this guide.

1
2
3
4
5
6
# cas.authn.mfa.swivel.swivelTuringImageUrl=https://turing.example.edu/TURingImage
# cas.authn.mfa.swivel.swivelUrl=https://swivel.example.org/pinsafe
# cas.authn.mfa.swivel.sharedSecret=Th3Sh@r3d$ecret
# cas.authn.mfa.swivel.ignoreSslErrors=false
# cas.authn.mfa.swivel.rank=0
# cas.authn.mfa.swivel.name=

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.swivel.

Microsoft Azure

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
# cas.authn.mfa.azure.phoneAttribute=phone
# cas.authn.mfa.azure.configDir=/etc/cas/azure
# cas.authn.mfa.azure.privateKeyPassword=
# cas.authn.mfa.azure.mode=POUND|PIN
# cas.authn.mfa.azure.rank=0
# cas.authn.mfa.azure.name=
# cas.authn.mfa.azure.allowInternationalCalls=false

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.azure.

Authy

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
# cas.authn.mfa.authy.apiKey=
# cas.authn.mfa.authy.apiUrl=
# cas.authn.mfa.authy.phoneAttribute=phone
# cas.authn.mfa.authy.mailAttribute=mail
# cas.authn.mfa.authy.countryCode=1
# cas.authn.mfa.authy.forceVerification=true
# cas.authn.mfa.authy.trustedDeviceEnabled=false
# cas.authn.mfa.authy.name=

Multifactor authentication bypass settings for this provider are available here under the configuration key cas.authn.mfa.authy.

SAML Core

Control core SAML functionality within CAS.

1
2
3
4
5
6
# cas.samlCore.ticketidSaml2=false
# cas.samlCore.skewAllowance=5
# cas.samlCore.issueLength=30
# cas.samlCore.attributeNamespace=http://www.ja-sig.org/products/cas/
# cas.samlCore.issuer=localhost
# cas.samlCore.securityManager=org.apache.xerces.util.SecurityManager

SAML IdP

Allow CAS to become a SAML2 identity provider.

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
# cas.authn.samlIdp.entityId=https://cas.example.org/idp
# cas.authn.samlIdp.scope=example.org

# cas.authn.samlIdp.authenticationContextClassMappings[0]=urn:oasis:names:tc:SAML:2.0:ac:classes:SomeClassName->mfa-duo
# cas.authn.samlIdp.authenticationContextClassMappings[1]=https://refeds.org/profile/mfa->mfa-gauth

# cas.authn.samlIdp.attributeQueryProfileEnabled=true

Attributes Name Formats

Name formats for an individual attribute can be mapped to a number of pre-defined formats, or a custom format of your own choosing. A given attribute that is to be encoded in the final SAML response may contain any of the following name formats:

Type Description
basic Map the attribute to urn:oasis:names:tc:SAML:2.0:attrname-format:basic.
uri Map the attribute to urn:oasis:names:tc:SAML:2.0:attrname-format:uri.
unspecified Map the attribute to urn:oasis:names:tc:SAML:2.0:attrname-format:basic.
urn:my:own:format Map the attribute to urn:my:own:format.

SAML Metadata

1
2
3
4
5
6
7
8
9
10
# cas.authn.samlIdp.metadata.location=file:/etc/cas/saml

# cas.authn.samlIdp.metadata.cacheExpirationMinutes=30
# cas.authn.samlIdp.metadata.failFast=true
# cas.authn.samlIdp.metadata.privateKeyAlgName=RSA
# cas.authn.samlIdp.metadata.requireValidMetadata=true

# cas.authn.samlIdp.metadata.basicAuthnUsername=
# cas.authn.samlIdp.metadata.basicAuthnPassword=
# cas.authn.samlIdp.metadata.supportedContentTypes=

SAML Metadata JPA

Database settings for this feature are available here under the configuration key cas.authn.samlIdp.metadata.jpa.

SAML Metadata MongoDb

Common configuration settings for this feature are available here under the configuration key cas.authn.samlIdp.metadata.

SAML Metadata REST

RESTful settings for this feature are available here under the configuration key cas.authn.samlIdp.metadata.rest.

SAML Metadata Amazon S3

Common AWS settings for this feature are available here under the configuration key cas.authn.samlIdp.metadata.amazonS3.

1
# cas.authn.samlIdp.metadata.amazonS3.bucketName=

SAML Logout

1
2
# cas.authn.samlIdp.logout.forceSignedLogoutRequests=true
# cas.authn.samlIdp.logout.singleLogoutCallbacksDisabled=false

SAML Algorithms & Security

1
2
3
4
5
6
7
8
9
# cas.authn.samlIdp.algs.overrideSignatureCanonicalizationAlgorithm=
# cas.authn.samlIdp.algs.overrideDataEncryptionAlgorithms=
# cas.authn.samlIdp.algs.overrideKeyEncryptionAlgorithms=
# cas.authn.samlIdp.algs.overrideBlackListedEncryptionAlgorithms=
# cas.authn.samlIdp.algs.overrideWhiteListedAlgorithms=
# cas.authn.samlIdp.algs.overrideSignatureReferenceDigestMethods=
# cas.authn.samlIdp.algs.overrideSignatureAlgorithms=
# cas.authn.samlIdp.algs.overrideBlackListedSignatureSigningAlgorithms=
# cas.authn.samlIdp.algs.overrideWhiteListedSignatureSigningAlgorithms=

SAML Response

1
2
3
4
5
6
# cas.authn.samlIdp.response.defaultAuthenticationContextClass=
# cas.authn.samlIdp.response.defaultAttributeNameFormat=uri
# cas.authn.samlIdp.response.signError=false
# cas.authn.samlIdp.response.skewAllowance=5
# cas.authn.samlIdp.response.signingCredentialType=X509|BASIC
# cas.authn.samlIdp.response.attributeNameFormats=attributeName->basic|uri|unspecified|custom-format-etc,...

SAML Ticket

1
2
# cas.authn.samlIdp.ticket.samlArtifactsCacheStorageName=samlArtifactsCache
# cas.authn.samlIdp.ticket.samlAttributeQueryCacheStorageName=samlAttributeQueryCache

SAML SPs

Allow CAS to register and enable a number of built-in SAML service provider integrations. To learn more about this topic, please review this guide.

Remember

SAML2 service provider integrations listed here simply attempt to automate CAS configuration based on known and documented integration guidelines and recipes provided by the service provider owned by the vendor. These recipes can change and break CAS over time.

Configuration settings for all SAML2 service providers are available here.

Service Provider Configuration Key Attributes
Gitlab cas.samlSp.gitlab last_name,first_name,name
Hipchat cas.samlSp.hipchat last_name,first_name,title
Dropbox cas.samlSp.dropbox mail
TestShib cas.samlSp.testShib eduPersonPrincipalName
OpenAthens cas.samlSp.openAthens email, eduPersonPrincipalName
Egnyte cas.samlSp.egnyte N/A
EverBridge cas.samlSp.everBridge N/A
Simplicity cas.samlSp.simplicity N/A
App Dynamics cas.samlSp.appDynamics User.OpenIDName, User.email, User.fullName, AccessControl, Groups-Membership
Yuja cas.samlSp.yuja N/A
Simplicity cas.samlSp.simplicity N/A
New Relic cas.samlSp.newRelic N/A
Sunshine State Education and Research Computing Alliance cas.samlSp.sserca N/A
CherWell cas.samlSp.cherWell N/A
FAMIS cas.samlSp.famis N/A
Bynder cas.samlSp.bynder N/A
Web Advisor cas.samlSp.webAdvisor uid
Adobe Creative Cloud cas.samlSp.adobeCloud firstName, lastName, email
Securing The Human cas.samlSp.sansSth firstName, lastName, scopedUserId, department, reference, email
Easy IEP cas.samlSp.easyIep employeeId
Infinite Campus cas.samlSp.infiniteCampus employeeId
Slack cas.samlSp.slack User.Email, User.Username, first_name, last_name, employeeId
Zendesk cas.samlSp.zendesk organization, tags, phone, role, email
Gartner cas.samlSp.gartner urn:oid:2.5.4.42, urn:oid:2.5.4.4, urn:oid:0.9.2342.19200300.100.1.3
Arc GIS cas.samlSp.arcGIS arcNameId, mail, givenName
Benefit Focus cas.samlSp.benefitFocus benefitFocusUniqueId
Office365 cas.samlSp.office365 IDPEmail, ImmutableID, scopedImmutableID
SAManage cas.samlSp.saManage mail
Salesforce cas.samlSp.salesforce eduPersonPrincipalName
Workday cas.samlSp.workday N/A
Academic Works cas.samlSp.academicWorks displayName
ZOOM cas.samlSp.zoom mail, sn, givenName
Evernote cas.samlSp.evernote email
Tableau cas.samlSp.tableau username
Asana cas.samlSp.asana email
Box cas.samlSp.box email, firstName, lastName
Service Now cas.samlSp.serviceNow eduPersonPrincipalName
Net Partner cas.samlSp.netPartner studentId
Webex cas.samlSp.webex firstName, lastName
InCommon cas.samlSp.inCommon eduPersonPrincipalName
Amazon cas.samlSp.amazon awsRoles, awsRoleSessionName
Concur Solutions cas.samlSp.concurSolutions email
PollEverywhere cas.samlSp.pollEverywhere email
BlackBaud cas.samlSp.blackBaud email, eduPersonPrincipalName
GiveCampus cas.samlSp.giveCampus email, givenName, surname, displayName
WarpWire cas.samlSp.warpWire email, givenName, eduPersonPrincipalName, surname, eduPersonScopedAffiliation, employeeNumber
WarpWire cas.samlSp.rocketChat email, cn, username

Note: For InCommon and other metadata aggregates, multiple entity ids can be specified to filter the InCommon metadata. EntityIds can be regular expression patterns and are mapped to CAS’ serviceId field in the registry. The signature location MUST BE the public key used to sign the metadata.

OpenID Connect

Allow CAS to become an OpenID Connect provider (OP). To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# cas.authn.oidc.issuer=http://localhost:8080/cas/oidc

# Skew ID tokens in minutes
# cas.authn.oidc.skew=5

# cas.authn.oidc.jwksFile=file:/keystore.jwks
# cas.authn.oidc.jwksCacheInMinutes=60

# cas.authn.oidc.dynamicClientRegistrationMode=OPEN|PROTECTED

# cas.authn.oidc.subjectTypes=public,pairwise

# Supported scopes
# cas.authn.oidc.scopes=openid,profile,email,address,phone,offline_access

# Supported claims
# cas.authn.oidc.claims=sub,name,preferred_username,family_name, \
#    given_name,middle_name,given_name,profile, \
#    picture,nickname,website,zoneinfo,locale,updated_at,birthdate, \
#    email,email_verified,phone_number,phone_number_verified,address

# Define custom scopes and claims
# cas.authn.oidc.userDefinedScopes.scope1=cn,givenName,photos,customAttribute
# cas.authn.oidc.userDefinedScopes.scope2=cn,givenName,photos,customAttribute2

# Map fixed claims to CAS attributes
# cas.authn.oidc.claimsMap.given_name=custom-given-name
# cas.authn.oidc.claimsMap.preferred_username=global-user-attribute

Pac4j Delegated AuthN

Act as a proxy, and delegate authentication to external identity providers. To learn more about this topic, please review this guide.

1
2
3
# cas.authn.pac4j.typedIdUsed=false
# cas.authn.pac4j.principalAttributeId=
# cas.authn.pac4j.name=

The following external identity providers share common blocks of settings under the listed configuration keys listed below:

Identity Provider Configuration Key
Twitter cas.authn.pac4j.twitter
Paypal cas.authn.pac4j.paypal
Wordpress cas.authn.pac4j.wordpress
Yahoo cas.authn.pac4j.yahoo
Orcid cas.authn.pac4j.orcid
Dropbox cas.authn.pac4j.dropbox
GitHub cas.authn.pac4j.github
Foursquare cas.authn.pac4j.foursquare
WindowsLive cas.authn.pac4j.windowsLive
Google cas.authn.pac4j.google
HiOrg-Server cas.authn.pac4j.hiOrgServer

See below for other identity providers such as CAS, SAML2 and more.

Signing & Encryption

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under ${configurationKey}.cookie.

Google

In addition to the common block of settings , the following properties are additionally supported, when delegating authentication to Google:

1
# cas.authn.pac4j.google.scope=EMAIL|PROFILE|EMAIL_AND_PROFILE

CAS

Delegate authentication to an external CAS server.

1
2
3
4
# cas.authn.pac4j.cas[0].loginUrl=
# cas.authn.pac4j.cas[0].protocol=
# cas.authn.pac4j.cas[0].usePathBasedCallbackUrl=false
# cas.authn.pac4j.cas[0].principalAttributeId=

OAuth20

Delegate authentication to an generic OAuth2 server. Common settings for this identity provider are available here under the configuration key cas.authn.pac4j.oauth2[0].

1
2
3
4
5
6
7
8
9
# cas.authn.pac4j.oauth2[0].authUrl=
# cas.authn.pac4j.oauth2[0].tokenUrl=
# cas.authn.pac4j.oauth2[0].profileUrl=
# cas.authn.pac4j.oauth2[0].profilePath=
# cas.authn.pac4j.oauth2[0].profileVerb=GET|POST
# cas.authn.pac4j.oauth2[0].profileAttrs.attr1=path-to-attr-in-profile
# cas.authn.pac4j.oauth2[0].customParams.param1=value1
# cas.authn.pac4j.oauth2[0].usePathBasedCallbackUrl=false
# cas.authn.pac4j.oauth2[0].principalAttributeId=

OpenID Connect

Delegate authentication to an external OpenID Connect server. Common settings for this identity provider are available here under the configuration key cas.authn.pac4j.oidc[0].

1
2
3
4
5
6
7
8
9
10
11
# cas.authn.pac4j.oidc[0].type=KEYCLOAK|GOOGLE|AZURE|GENERIC
# cas.authn.pac4j.oidc[0].discoveryUri=
# cas.authn.pac4j.oidc[0].logoutUrl=
# cas.authn.pac4j.oidc[0].maxClockSkew=
# cas.authn.pac4j.oidc[0].scope=
# cas.authn.pac4j.oidc[0].useNonce=
# cas.authn.pac4j.oidc[0].preferredJwsAlgorithm=
# cas.authn.pac4j.oidc[0].customParams.param1=value1
# cas.authn.pac4j.oidc[0].azureTenantId=
# cas.authn.pac4j.oidc[0].usePathBasedCallbackUrl=false
# cas.authn.pac4j.oidc[0].principalAttributeId=

SAML2

Delegate authentication to an external SAML2 IdP (do not use the resource: or classpath: prefixes for the keystorePath or identityProviderMetadataPath property).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# cas.authn.pac4j.saml[0].keystorePassword=
# cas.authn.pac4j.saml[0].privateKeyPassword=
# cas.authn.pac4j.saml[0].keystorePath=
# cas.authn.pac4j.saml[0].keystoreAlias=

# cas.authn.pac4j.saml[0].serviceProviderEntityId=
# cas.authn.pac4j.saml[0].serviceProviderMetadataPath=

# cas.authn.pac4j.saml[0].maximumAuthenticationLifetime=3600
# cas.authn.pac4j.saml[0].acceptedSkew=300
# cas.authn.pac4j.saml[0].destinationBinding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect

# Path/URL to delegated IdP metadata
# cas.authn.pac4j.saml[0].identityProviderMetadataPath=

# cas.authn.pac4j.saml[0].authnContextClassRef=
# cas.authn.pac4j.saml[0].authnContextComparisonType=
# cas.authn.pac4j.saml[0].nameIdPolicyFormat=
# cas.authn.pac4j.saml[0].forceAuth=false
# cas.authn.pac4j.saml[0].passive=false

# cas.authn.pac4j.saml[0].wantsAssertionsSigned=
# cas.authn.pac4j.saml[0].signServiceProviderMetadata=false
# cas.authn.pac4j.saml[0].attributeConsumingServiceIndex=
# cas.authn.pac4j.saml[0].assertionConsumerServiceIndex=-1
# cas.authn.pac4j.saml[0].principalAttributeId=

# cas.authn.pac4j.saml[0].requestedAttributes[0].name=
# cas.authn.pac4j.saml[0].requestedAttributes[0].friendlyName=
# cas.authn.pac4j.saml[0].requestedAttributes[0].nameFormat=urn:oasis:names:tc:SAML:2.0:attrname-format:uri
# cas.authn.pac4j.saml[0].requestedAttributes[0].required=false

# cas.authn.pac4j.saml[0].mappedAttributes[0].name=urn:oid:2.5.4.42
# cas.authn.pac4j.saml[0].mappedAttributes[0].mappedAs=displayName

Examine the generated metadata after accessing the CAS login screen to ensure all ports and endpoints are correctly adjusted. Finally, share the CAS SP metadata with the delegated IdP and register CAS as an authorized relying party.

Facebook

Delegate authentication to Facebook. Common settings for this identity provider are available here under the configuration key cas.authn.pac4j.facebook.

1
2
# cas.authn.pac4j.facebook.fields=
# cas.authn.pac4j.facebook.scope=

HiOrg Server

Delegate authentication to HiOrg Server. Common settings for this identity provider are available here under the configuration key cas.authn.pac4j.hiOrgServer.

1
# cas.authn.pac4j.hiOrgServer.scope=eigenedaten

LinkedIn

Delegate authentication to LinkedIn. Common settings for this identity provider are available here under the configuration key cas.authn.pac4j.linkedin.

1
2
# cas.authn.pac4j.linkedIn.fields=
# cas.authn.pac4j.linkedIn.scope=

Twitter

Delegate authentication to Twitter. Common settings for this identity provider are available here under the configuration key cas.authn.pac4j.twitter.

1
# cas.authn.pac4j.twitter.includeEmail=false

WS Federation

Allow CAS to act as an identity provider and security token service to support the WS-Federation protocol.

To learn more about this topic, please review this guide

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# cas.authn.wsfedIdp.idp.realm=urn:org:apereo:cas:ws:idp:realm-CAS
# cas.authn.wsfedIdp.idp.realmName=CAS

# cas.authn.wsfedIdp.sts.signingKeystoreFile=/etc/cas/config/ststrust.jks
# cas.authn.wsfedIdp.sts.signingKeystorePassword=storepass
# cas.authn.wsfedIdp.sts.encryptionKeystoreFile=/etc/cas/config/stsencrypt.jks
# cas.authn.wsfedIdp.sts.encryptionKeystorePassword=storepass

# cas.authn.wsfedIdp.sts.subjectNameIdFormat=unspecified
# cas.authn.wsfedIdp.sts.encryptTokens=true

# cas.authn.wsfedIdp.sts.realm.keystoreFile=/etc/cas/config/stscasrealm.jks
# cas.authn.wsfedIdp.sts.realm.keystorePassword=storepass
# cas.authn.wsfedIdp.sts.realm.keystoreAlias=realmcas
# cas.authn.wsfedIdp.sts.realm.keyPassword=cas
# cas.authn.wsfedIdp.sts.realm.issuer=CAS

Signing & Encryption

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. These come into play in order to secure authentication requests between the IdP and STS. Signing & encryption settings for this feature are available here under the configuration key cas.authn.wsfedIdp.sts.

OAuth2

Allows CAS to act as an OAuth2 provider. Here you can control how long various tokens issued by CAS should last, etc.

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
# cas.authn.oauth.refreshToken.timeToKillInSeconds=2592000

# cas.authn.oauth.code.timeToKillInSeconds=30
# cas.authn.oauth.code.numberOfUses=1

# cas.authn.oauth.accessToken.releaseProtocolAttributes=true
# cas.authn.oauth.accessToken.timeToKillInSeconds=7200
# cas.authn.oauth.accessToken.maxTimeToLiveInSeconds=28800

# cas.authn.oauth.grants.resourceOwner.requireServiceHeader=true

# cas.authn.oauth.userProfileViewType=NESTED|FLAT

Localization

To learn more about this topic, please review this guide.

1
2
# cas.locale.paramName=locale
# cas.locale.defaultValue=en

Global SSO Behavior

1
2
3
4
# cas.sso.allowMissingServiceParameter=true
# cas.sso.createSsoCookieOnRenewAuthn=true
# cas.sso.proxyAuthnEnabled=true
# cas.sso.renewAuthnEnabled=true

Created by CAS if and when users are to be warned when accessing CAS protected services.

1
2
3
4
5
6
# cas.warningCookie.path=
# cas.warningCookie.maxAge=-1
# cas.warningCookie.domain=
# cas.warningCookie.name=CASPRIVACY
# cas.warningCookie.secure=true
# cas.warningCookie.httpOnly=true
1
2
3
4
5
6
7
8
# cas.tgc.path=
# cas.tgc.maxAge=-1
# cas.tgc.domain=
# cas.tgc.name=TGC
# cas.tgc.secure=true
# cas.tgc.httpOnly=true
# cas.tgc.rememberMeMaxAge=1209600
# cas.tgc.pinToSession=true

Signing & Encryption

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under the configuration key cas.tgc.

Logout

Control various settings related to CAS logout functionality. To learn more about this topic, please review this guide.

1
2
3
4
5
# cas.logout.followServiceRedirects=false
# cas.logout.redirectParameter=service
# cas.logout.redirectUrl=https://www.github.com
# cas.logout.confirmLogout=false
# cas.logout.removeDescendantTickets=false

Single Logout

To learn more about this topic, please review this guide.

1
2
# cas.slo.disabled=false
# cas.slo.asynchronous=true

Clearpass

Capture and cache user credentials and optionally release them to trusted applications. To learn more about this topic, please review this guide.

Usage Warning!

ClearPass is turned off by default. Think VERY CAREFULLY before turning on this feature, as it MUST be the last resort in getting an integration to work...maybe not even then.

1
# cas.clearpass.cacheCredential=false

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under the configuration key cas.clearpass.

Message Bundles

To learn more about this topic, please review this guide. The baseNames are message bundle base names representing files that either end in .properties or _xx.properties where xx is a country locale code. The commonNames are not actually message bundles but they are properties files that are merged together and contain keys that are only used if they are not found in the message bundles. Keys from the later files in the list will be preferred over keys from the earlier files.

1
2
3
4
5
6
# cas.messageBundle.encoding=UTF-8
# cas.messageBundle.fallbackSystemLocale=false
# cas.messageBundle.cacheSeconds=180
# cas.messageBundle.useCodeMessage=true
# cas.messageBundle.baseNames=classpath:custom_messages,classpath:messages
# cas.messageBundle.commonNames=classpath:/common_messages.properties,file:/etc/cas/config/common_messages.properties

Audits

Control how audit messages are formatted. To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
# cas.audit.ignoreAuditFailures=false
# cas.audit.appCode=CAS
# cas.audit.numberOfDaysInHistory=30
# cas.audit.includeValidationAssertion=false
# cas.audit.alternateServerAddrHeaderName=
# cas.audit.alternateClientAddrHeaderName=X-Forwarded-For
# cas.audit.useServerHostAddress=false

Slf4j Audits

Route audit logs to the Slf4j logging system which might in turn store audit logs in a file or any other destination that the logging system supports.

The logger name is fixed at org.apereo.inspektr.audit.support.

1
2
3
<AsyncLogger name="org.apereo.inspektr.audit.support" level="info">
    <!-- Route the audit data to any number of appenders supported by the logging framework. -->
</AsyncLogger>

Audit records routed to the Slf4j log are not able to read the audit data back given the abstraction layer between CAS, the logging system and any number of log appenders that might push data to a variety of systems.

1
2
3
# cas.audit.slf4j.auditFormat=DEFAULT|JSON
# cas.audit.slf4j.singlelineSeparator=|
# cas.audit.slf4j.useSingleLine=false

MongoDb Audits

Store audit logs inside a MongoDb database.

Common configuration settings for this feature are available here under the configuration key cas.audit.

Database Audits

Store audit logs inside a database. Database settings for this feature are available here under the configuration key cas.audit.jdbc.

1
2
3
4
5
# cas.audit.jdbc.asynchronous=true
# cas.audit.jdbc.maxAgeDays=180
# cas.audit.jdbc.columnLength=100
# cas.audit.jdbc.isolationLevelName=ISOLATION_READ_COMMITTED
# cas.audit.jdbc.propagationBehaviorName=PROPAGATION_REQUIRED

REST Audits

Store audit logs inside a database. RESTful settings for this feature are available here under the configuration key cas.audit.rest.

Sleuth Distributed Tracing

To learn more about this topic, please review this guide.

1
2
3
4
5
# spring.sleuth.sampler.percentage = 0.5
# spring.sleuth.enabled=true

# spring.zipkin.enabled=true
# spring.zipkin.baseUrl=http://localhost:9411/

Monitoring

To learn more about this topic, please review this guide.

Ticket Granting Tickets

Decide how CAS should monitor the generation of TGTs.

1
2
# cas.monitor.tgt.warn.threshold=10
# cas.monitor.tgt.warn.evictionThreshold=0

Service Tickets

Decide how CAS should monitor the generation of STs.

1
2
# cas.monitor.st.warn.threshold=10
# cas.monitor.st.warn.evictionThreshold=0

Cache Monitors

Decide how CAS should monitor the internal state of various cache storage services.

1
2
# cas.monitor.warn.threshold=10
# cas.monitor.warn.evictionThreshold=0

Memcached Monitors

Decide how CAS should monitor the internal state of a memcached connection pool. Integration settings for this registry are available here under the configuration key cas.monitor.memcached.

MongoDb Monitors

Decide how CAS should monitor the internal state of a MongoDb instance. Common configuration settings for this feature are available here under the configuration key cas.monitor.

Database Monitoring

Decide how CAS should monitor the internal state of JDBC connections used for authentication or attribute retrieval. Database settings for this feature are available here under the configuration key cas.monitor.jdbc.

1
2
# cas.monitor.jdbc.validationQuery=SELECT 1
# cas.monitor.jdbc.maxWait=5000

LDAP Connection Pool

Decide how CAS should monitor the internal state of LDAP connections used for authentication, etc. LDAP settings for this feature are available here under the configuration key cas.monitor.ldap.

1
# cas.monitor.ldap.maxWait=5000

Memory

Decide how CAS should monitor the internal state of JVM memory available at runtime.

1
# cas.monitor.freeMemThreshold=10

Themes

To learn more about this topic, please review this guide.

1
2
# cas.theme.paramName=theme
# cas.theme.defaultThemeName=cas-theme-default

Events

Decide how CAS should track authentication events. To learn more about this topic, please review this guide.

1
2
3
4
5
# Whether geolocation tracking should be turned on and requested from the browser.
# cas.events.trackGeolocation=false

# Control whether CAS should monitor configuration files and auto-refresh context.
# cas.events.trackConfigurationModifications=true

InfluxDb Events

Decide how CAS should store authentication events inside an InfluxDb instance. Common configuration settings for this feature are available here under the configuration key cas.events.influxDb.

Database Events

Decide how CAS should store authentication events inside a database instance. Database settings for this feature are available here under the configuration key cas.events.jpa.

MongoDb Events

Decide how CAS should store authentication events inside a MongoDb instance. Common configuration settings for this feature are available here under the configuration key cas.events.

Http Web Requests

Control how CAS should respond and validate incoming HTTP requests.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# cas.httpWebRequest.header.xframe=true
# cas.httpWebRequest.header.xframeOptions=DENY

# cas.httpWebRequest.header.xss=true
# cas.httpWebRequest.header.xssOptions=1; mode=block

# cas.httpWebRequest.header.hsts=true
# cas.httpWebRequest.header.xcontent=true
# cas.httpWebRequest.header.cache=true
# cas.httpWebRequest.header.contentSecurityPolicy=

# cas.httpWebRequest.cors.enabled=false
# cas.httpWebRequest.cors.allowCredentials=false
# cas.httpWebRequest.cors.allowOrigins[0]=
# cas.httpWebRequest.cors.allowMethods[0]=*
# cas.httpWebRequest.cors.allowHeaders[0]=*
# cas.httpWebRequest.cors.maxAge=3600
# cas.httpWebRequest.cors.exposedHeaders[0]=

# cas.httpWebRequest.web.forceEncoding=true
# cas.httpWebRequest.web.encoding=UTF-8

# cas.httpWebRequest.allowMultiValueParameters=false
# cas.httpWebRequest.onlyPostParams=username,password
# cas.httpWebRequest.paramsToCheck=ticket,service,renew,gateway,warn,method,target,SAMLart,pgtUrl,pgt,pgtId,pgtIou,targetService,entityId,token

# cas.httpWebRequest.customHeaders.headerName1=headerValue1
# cas.httpWebRequest.customHeaders.headerName2=headerValue2

# spring.http.encoding.charset=UTF-8
# spring.http.encoding.enabled=true
# spring.http.encoding.force=true

Http Client

Control how CAS should attempt to contact resources on the web via its own Http Client. This is most commonly used when responding to ticket validation events and/or single logout.

In the event that local certificates are to be imported into the CAS running environment, a local truststore is provided by CAS to improve portability of configuration across environments.

1
2
3
4
5
6
7
8
9
10
# cas.httpClient.connectionTimeout=5000
# cas.httpClient.asyncTimeout=5000
# cas.httpClient.readTimeout=5000
# cas.httpClient.hostNameVerifier=NONE|DEFAULT
# cas.httpClient.allowLocalLogoutUrls=false
# cas.httpClient.authorityValidationRegEx=
# cas.httpClient.authorityValidationRegExCaseSensitive=true

# cas.httpClient.truststore.psw=changeit
# cas.httpClient.truststore.file=classpath:/truststore.jks

Hostname Verification

The default options are available for hostname verification:

Type Description
NONE Ignore hostname verification.
DEFAULT Enforce hostname verification.

Service Registry

See this guide to learn more.

1
2
3
4
5
6
7
8
9
# cas.serviceRegistry.watcherEnabled=true

# cas.serviceRegistry.schedule.repeatInterval=120000
# cas.serviceRegistry.schedule.startDelay=15000

# Auto-initialize the registry from default JSON service definitions
# cas.serviceRegistry.initFromJson=false

# cas.serviceRegistry.managementType=DEFAULT|DOMAIN

Service Registry Notifications

Email notifications settings for this feature are available here under the configuration key cas.serviceRegistry. SMS notifications settings for this feature are available here under the configuration key cas.serviceRegistry.

JSON Service Registry

If the underlying service registry is using local system resources to locate JSON service definitions, decide how those resources should be found.

1
# cas.serviceRegistry.json.location=classpath:/services

To learn more about this topic, please review this guide.

YAML Service Registry

If the underlying service registry is using local system resources to locate YAML service definitions, decide how those resources should be found.

1
# cas.serviceRegistry.yaml.location=classpath:/services

To learn more about this topic, please review this guide.

RESTful Service Registry

To learn more about this topic, please review this guide.

1
2
3
# cas.serviceRegistry.rest.url=https://example.api.org
# cas.serviceRegistry.rest.basicAuthUsername=
# cas.serviceRegistry.rest.basicAuthPassword=

Redis Service Registry

To learn more about this topic, please review this guide. Common configuration settings for this feature are available here under the configuration key cas.serviceRegistry.

CosmosDb Service Registry

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
# cas.serviceRegistry.cosmosDb.uri=
# cas.serviceRegistry.cosmosDb.key=
# cas.serviceRegistry.cosmosDb.database=
# cas.serviceRegistry.cosmosDb.collection=
# cas.serviceRegistry.cosmosDb.throughput=10000
# cas.serviceRegistry.cosmosDb.dropCollection=true
# cas.serviceRegistry.cosmosDb.consistencyLevel=Session

DynamoDb Service Registry

To learn more about this topic, please review this guide. Common configuration settings for this feature are available here under the configuration key cas.serviceRegistry. AWS settings for this feature are available here under the configuration key cas.serviceRegistry.dynamoDb.

1
# cas.serviceRegistry.dynamoDb.tableName=DynamoDbCasServices

MongoDb Service Registry

Store CAS service definitions inside a MongoDb instance. To learn more about this topic, please review this guide. Common configuration settings for this feature are available here under the configuration key cas.serviceRegistry.

LDAP Service Registry

Control how CAS services should be found inside an LDAP instance. To learn more about this topic, please review this guide. LDAP settings for this feature are available here under the configuration key cas.serviceRegistry.ldap.

1
2
3
4
5
# cas.serviceRegistry.ldap.serviceDefinitionAttribute=description
# cas.serviceRegistry.ldap.idAttribute=uid
# cas.serviceRegistry.ldap.objectClass=casRegisteredService
# cas.serviceRegistry.ldap.searchFilter=(%s={0})
# cas.serviceRegistry.ldap.loadFilter=(objectClass=%s)

Couchbase Service Registry

Control how CAS services should be found inside a Couchbase instance. To learn more about this topic, please review this guide. Database settings for this feature are available here under the configuration key cas.serviceRegistry.couchbase.

Database Service Registry

Control how CAS services should be found inside a database instance. To learn more about this topic, please review this guide. Database settings for this feature are available here under the configuration key cas.serviceRegistry.jpa.

Service Registry Replication

Control how CAS services definition files should be replicated across a CAS cluster. To learn more about this topic, please review this guide

Replication modes may be configured per the following options:

Type Description
ACTIVE_ACTIVE All CAS nodes sync copies of definitions and keep them locally.
ACTIVE_PASSIVE Default. One master node keeps definitions and streams changes to other passive nodes.
1
2
# cas.serviceRegistry.stream.enabled=true
# cas.serviceRegistry.stream.replicationMode=ACTIVE_ACTIVE|ACTIVE_PASSIVE

Service Registry Replication Hazelcast

Control how CAS services definition files should be replicated across a CAS cluster backed by a distributed Hazelcast cache. To learn more about this topic, please review this guide.

Hazelcast settings for this feature are available here under the configuration key cas.serviceRegistry.stream.hazelcast.config.

1
# cas.serviceRegistry.stream.hazelcast.duration=PT1M

Ticket Registry

To learn more about this topic, please review this guide.

Signing & Encryption

The encryption key must be randomly-generated string of size 16. The signing key is a JWK of size 512.

Cleaner

A cleaner process is scheduled to run in the background to clean up expired and stale tickets. This section controls how that process should behave.

1
2
3
# cas.ticket.registry.cleaner.schedule.startDelay=10000
# cas.ticket.registry.cleaner.schedule.repeatInterval=60000
# cas.ticket.registry.cleaner.schedule.enabled=true

JPA Ticket Registry

To learn more about this topic, please review this guide. Database settings for this feature are available here under the configuration key cas.ticket.registry.jpa.

1
2
# cas.ticket.registry.jpa.ticketLockType=NONE
# cas.ticket.registry.jpa.jpaLockingTimeout=3600

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.jpa.

Couchbase Ticket Registry

To learn more about this topic, please review this guide. Database settings for this feature are available here under the configuration key cas.ticket.registry.couchbase.

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.couchbase.

Hazelcast Ticket Registry

To learn more about this topic, please review this guide.

Hazelcast settings for this feature are available here under the configuration key cas.ticket.registry.hazelcast.

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.hazelcast.

Infinispan Ticket Registry

To learn more about this topic, please review this guide.

1
2
# cas.ticket.registry.infinispan.cacheName=
# cas.ticket.registry.infinispan.configLocation=/infinispan.xml

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.infinispan.

InMemory Ticket Registry

This is typically the default ticket registry instance where tickets are kept inside the runtime environment memory.

1
2
3
4
5
6
# Enable the backing map to be cacheable
# cas.ticket.registry.inMemory.cache=true

# cas.ticket.registry.inMemory.loadFactor=1
# cas.ticket.registry.inMemory.concurrency=20
# cas.ticket.registry.inMemory.initialCapacity=1000

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.inMemory.

JMS Ticket Registry

To learn more about this topic, please review this guide.

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.jms.

JMS Ticket Registry ActiveMQ

1
2
3
4
5
6
7
# spring.activemq.broker-url=tcp://192.168.1.210:9876
# spring.activemq.user=admin
# spring.activemq.password=secret
# spring.activemq.pool.enabled=true
# spring.activemq.pool.max-connections=50
# spring.activemq.packages.trust-all=false
# spring.activemq.packages.trusted=org.apereo.cas

JMS Ticket Registry Artemis

1
2
3
4
5
# spring.artemis.mode=native
# spring.artemis.host=192.168.1.210
# spring.artemis.port=9876
# spring.artemis.user=admin
# spring.artemis.password=secret

JMS Ticket Registry JNDI

1
# spring.jms.jndi-name=java:/MyConnectionFactory

Ehcache Ticket Registry

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# cas.ticket.registry.ehcache.replicateUpdatesViaCopy=true
# cas.ticket.registry.ehcache.cacheManagerName=ticketRegistryCacheManager
# cas.ticket.registry.ehcache.replicatePuts=true
# cas.ticket.registry.ehcache.replicateUpdates=true
# cas.ticket.registry.ehcache.memoryStoreEvictionPolicy=LRU
# cas.ticket.registry.ehcache.configLocation=classpath:/ehcache-replicated.xml
# cas.ticket.registry.ehcache.maximumBatchSize=100
# cas.ticket.registry.ehcache.shared=false
# cas.ticket.registry.ehcache.replicationInterval=10000
# cas.ticket.registry.ehcache.cacheTimeToLive=2147483647
# cas.ticket.registry.ehcache.diskExpiryThreadIntervalSeconds=0
# cas.ticket.registry.ehcache.replicateRemovals=true
# cas.ticket.registry.ehcache.maxChunkSize=5000000
# cas.ticket.registry.ehcache.maxElementsOnDisk=0
# cas.ticket.registry.ehcache.maxElementsInCache=0
# cas.ticket.registry.ehcache.maxElementsInMemory=10000
# cas.ticket.registry.ehcache.eternal=false
# cas.ticket.registry.ehcache.loaderAsync=true
# cas.ticket.registry.ehcache.replicatePutsViaCopy=true
# cas.ticket.registry.ehcache.cacheTimeToIdle=0
# cas.ticket.registry.ehcache.persistence=LOCALTEMPSWAP|NONE|LOCALRESTARTABLE|DISTRIBUTED
# cas.ticket.registry.ehcache.synchronousWrites=

# The systemprops allows a map of properties to be set as system properties before configLocation config is processed.
# These properties may be referenced in the ehcache XML config via ${key}
# cas.ticket.registry.ehcache.systemProps.key1=value1
# cas.ticket.registry.ehcache.systemProps.key2=value2

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.ehcache.

Ignite Ticket Registry

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# cas.ticket.registry.ignite.keyAlgorithm=
# cas.ticket.registry.ignite.protocol=
# cas.ticket.registry.ignite.trustStorePassword=
# cas.ticket.registry.ignite.keyStoreType=
# cas.ticket.registry.ignite.keyStoreFilePath=
# cas.ticket.registry.ignite.keyStorePassword=
# cas.ticket.registry.ignite.trustStoreType=
# cas.ticket.registry.ignite.igniteAddress[0]=localhost:47500
# cas.ticket.registry.ignite.igniteAddress[1]=
# cas.ticket.registry.ignite.trustStoreFilePath=
# cas.ticket.registry.ignite.ackTimeout=2000
# cas.ticket.registry.ignite.joinTimeout=1000
# cas.ticket.registry.ignite.localAddress=
# cas.ticket.registry.ignite.localPort=-1
# cas.ticket.registry.ignite.networkTimeout=5000
# cas.ticket.registry.ignite.socketTimeout=5000
# cas.ticket.registry.ignite.threadPriority=10
# cas.ticket.registry.ignite.forceServerMode=false
# cas.ticket.registry.ignite.clientMode=false

# cas.ticket.registry.ignite.ticketsCache.writeSynchronizationMode=FULL_SYNC
# cas.ticket.registry.ignite.ticketsCache.atomicityMode=TRANSACTIONAL
# cas.ticket.registry.ignite.ticketsCache.cacheMode=REPLICATED

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.ignite.

Memcached Ticket Registry

To learn more about this topic, please review this guide.Integration settings for this registry are available here under the configuration key cas.ticket.registry.memcached.

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.memcached.

DynamoDb Ticket Registry

To learn more about this topic, please review this guide.

Common configuration settings for this feature are available here under the configuration key cas.ticket.registry.

Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.dynamoDb.

AWS settings for this feature are available here under the configuration key cas.ticket.registry.dynamoDb.

1
2
3
4
5
# cas.ticket.registry.dynamoDb.serviceTicketsTableName=serviceTicketsTable
# cas.ticket.registry.dynamoDb.proxyTicketsTableName=proxyTicketsTable
# cas.ticket.registry.dynamoDb.ticketGrantingTicketsTableName=ticketGrantingTicketsTable
# cas.ticket.registry.dynamoDb.proxyGrantingTicketsTableName=proxyGrantingTicketsTable
# cas.ticket.registry.dynamoDb.transientSessionTicketsTableName=transientSessionTicketsTable

MongoDb Ticket Registry

To learn more about this topic, please review this guide. Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.mongo. Common configuration settings for this feature are available here under the configuration key cas.ticket.registry.

Redis Ticket Registry

To learn more about this topic, please review this guide. Common configuration settings for this feature are available here under the configuration key cas.ticket.registry. Signing & encryption settings for this registry are available here under the configuration key cas.ticket.registry.redis.

Protocol Ticket Security

Controls whether tickets issued by the CAS server should be secured via signing and encryption when shared with client applications on outgoing calls. The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under the configuration key cas.ticket.

Service Tickets Behavior

Controls the expiration policy of service tickets, as well as other properties applicable to STs.

1
2
3
4
# cas.ticket.st.maxLength=20

# cas.ticket.st.numberOfUses=1
# cas.ticket.st.timeToKillInSeconds=10

Proxy Granting Tickets Behavior

1
# cas.ticket.pgt.maxLength=50

Proxy Tickets Behavior

1
2
# cas.ticket.pt.timeToKillInSeconds=10
# cas.ticket.pt.numberOfUses=1

Transient Session Tickets Behavior

1
# cas.ticket.tst.timeToKillInSeconds=300

Ticket Granting Tickets Behavior

1
2
# cas.ticket.tgt.onlyTrackMostRecentSession=true
# cas.ticket.tgt.maxLength=50

TGT Expiration Policy

Ticket expiration policies are activated in the following conditions:

  • If the timeout values for the default policy are all set to zero or less, CAS shall ensure tickets are never considered expired.
  • Disabling a policy requires that all its timeout settings be set to a value equal or less than zero.
  • If not ticket expiration policy is determined, CAS shall ensure the ticket are always considered expired.
Keep What You Need!

You are encouraged to only keep and maintain properties and settings needed for a particular policy. It is UNNECESSARY to grab a copy of all fields or keeping a copy as a reference while leaving them commented out. This strategy would ultimately lead to poor upgrades increasing chances of breaking changes and a messy deployment at that.

Ticket expiration policies are activated in the following order:

  1. Tickets are never expired, if and when settings for the default policy are configured accordingly.
  2. Timeout
  3. Default
  4. Throttled Timeout
  5. Hard Timeout
  6. Tickets always expire immediately.

Default

Provides a hard-time out as well as a sliding window.

1
2
3
# Set to a negative value to never expire tickets
# cas.ticket.tgt.maxTimeToLiveInSeconds=28800
# cas.ticket.tgt.timeToKillInSeconds=7200

Remember Me

1
2
# cas.ticket.tgt.rememberMe.enabled=true
# cas.ticket.tgt.rememberMe.timeToKillInSeconds=28800

Timeout

The expiration policy applied to TGTs provides for most-recently-used expiration policy, similar to a Web server session timeout.

1
# cas.ticket.tgt.timeout.maxTimeToLiveInSeconds=28800

Throttled Timeout

The throttled timeout policy extends the Timeout policy with the concept of throttling where a ticket may be used at most every N seconds.

1
2
# cas.ticket.tgt.throttledTimeout.timeToKillInSeconds=28800
# cas.ticket.tgt.throttledTimeout.timeInBetweenUsesInSeconds=5

Hard Timeout

The hard timeout policy provides for finite ticket lifetime as measured from the time of creation.

1
# cas.ticket.tgt.hardTimeout.timeToKillInSeconds=28800

Google reCAPTCHA Integration

Display Google’s reCAPTCHA widget on the CAS login page.

1
2
3
4
5
6
# cas.googleRecaptcha.enabled=true
# cas.googleRecaptcha.verifyUrl=https://www.google.com/recaptcha/api/siteverify
# cas.googleRecaptcha.siteKey=
# cas.googleRecaptcha.secret=
# cas.googleRecaptcha.invisible=
# cas.googleRecaptcha.position=bottomright

Google Analytics Integration

To learn more about this topic, please review this guide.

1
# cas.googleAnalytics.googleAnalyticsTrackingId=

Spring Webflow

Control how Spring Webflow’s conversational session state should be managed by CAS, and all other webflow related settings.

To learn more about this topic, please review this guide.

1
2
3
# cas.webflow.alwaysPauseRedirect=false
# cas.webflow.refresh=true
# cas.webflow.redirectSameState=false

Spring Webflow Auto Configuration

Options that control how the Spring Webflow context is dynamically altered and configured by CAS. To learn more about this topic, please review this guide.

1
# cas.webflow.autoconfigure=true

Spring Webflow Groovy Auto Configuration

Control the Spring Webflow context via a custom Groovy script.

1
# cas.webflow.groovy.location=file:/etc/cas/config/custom-webflow.groovy

Spring Webflow Session Management

To learn more about this topic, see this guide.

1
2
3
4
5
6
# cas.webflow.session.lockTimeout=30
# cas.webflow.session.compress=false
# cas.webflow.session.maxConversations=5

# Enable server-side session management
# cas.webflow.session.storage=false

The signing and encryption keys are both JWKs of size 512 and 256.

Spring Webflow Client-Side Session

The encryption key must be randomly-generated string of size f16. The signing key is a JWK of size 512.

Signing & encryption settings for this feature are available here under the configuration key cas.webflow.

Spring Webflow Hazelcast Server-Side Session

1
# cas.webflow.session.hzLocation=classpath:/hazelcast.xml

Spring Webflow MongoDb Server-Side Session

1
2
3
# spring.data.mongodb.host=mongo-srv
# spring.data.mongodb.port=27018
# spring.data.mongodb.database=prod

Spring Webflow Redis Server-Side Session

1
2
3
4
# spring.session.store-type=redis
# spring.redis.host=localhost
# spring.redis.password=secret
# spring.redis.port=6379

Authentication Exceptions

Map custom authentication exceptions in the CAS webflow and link them to custom messages defined in message bundles.

To learn more about this topic, please review this guide.

1
# cas.authn.exceptions.exceptions=value1,value2,...

Authentication Interrupt

Interrupt the authentication flow to reach out to external services. To learn more about this topic, please review this guide.

Authentication Interrupt JSON

1
# cas.interrupt.json.location=file:/etc/cas/config/interrupt.json

Authentication Interrupt Regex Attributes

1
2
# cas.interrupt.attributeName=attribute-name-pattern
# cas.interrupt.attributeValue=attribute-value-pattern

Authentication Interrupt Groovy

1
# cas.interrupt.groovy.location=file:/etc/cas/config/interrupt.groovy

Authentication Interrupt REST

RESTful settings for this feature are available here under the configuration key cas.interrupt.rest.

Acceptable Usage Policy

Decide how CAS should attempt to determine whether AUP is accepted. To learn more about this topic, please review this guide.

1
# cas.acceptableUsagePolicy.aupAttributeName=aupAccepted

REST

RESTful settings for this feature are available here under the configuration key cas.acceptableUsagePolicy.rest.

JDBC

If AUP is controlled via JDBC, decide how choices should be remembered back inside the database instance. Database settings for this feature are available here under the configuration key cas.acceptableUsagePolicy.jdbc.

1
# cas.acceptableUsagePolicy.jdbc.tableName=usage_policies_table

MongoDb

Common configuration settings for this feature are available here under the configuration key cas.acceptableUsagePolicy.

LDAP

If AUP is controlled via LDAP, decide how choices should be remembered back inside the LDAP instance. LDAP settings for this feature are available here under the configuration key cas.acceptableUsagePolicy.ldap.

Disable Acceptable Usage Policy

Allow acceptable usage policy webflow to be disabled - requires restart.

1
cas.acceptableUsagePolicy.enabled=true

REST API

To learn more about this topic, please review this guide.

1
2
3
4
# cas.rest.attributeName=
# cas.rest.attributeValue=
# cas.rest.headerAuth=
# cas.rest.bodyAuth=

Metrics

To learn more about this topic, please review this guide.

1
2
# cas.metrics.loggerName=perfStatsLogger
# cas.metrics.refreshInterval=30

Metrics Storage

Redis

1
2
# cas.metrics.redis.key=
# cas.metrics.redis.prefix=

Common configuration settings for this feature are available here under the configuration key cas.metrics.

Statsd

1
2
3
# cas.metrics.statsd.host=
# cas.metrics.statsd.port=8125
# cas.metrics.statsd.prefix=cas

MongoDb

Common configuration settings for this feature are available here under the configuration key cas.metrics.mongo.

Open TSDB

1
2
3
# cas.metrics.openTsdb.connectTimeout=10000
# cas.metrics.openTsdb.readTimeout=30000
# cas.metrics.openTsdb.prefix=url

InfluxDb

Common configuration settings for this feature are available here under the configuration key cas.metrics.influxDb.

SAML Metadata UI

Control how SAML MDUI elements should be displayed on the main CAS login page in the event that CAS is handling authentication for an external SAML2 IdP.

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
# cas.samlMetadataUi.requireValidMetadata=true
# cas.samlMetadataUi.schedule.repeatInterval=120000
# cas.samlMetadataUi.schedule.startDelay=30000
# cas.samlMetadataUi.resources=classpath:/sp-metadata::classpath:/pub.key,http://md.incommon.org/InCommon/InCommon-metadata.xml::classpath:/inc-md-pub.key
# cas.samlMetadataUi.maxValidity=0
# cas.samlMetadataUi.requireSignedRoot=false
# cas.samlMetadataUi.parameter=entityId

Eureka Service Discovery

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
# eureka.client.serviceUrl.defaultZone=${EUREKA_SERVER_HOST:http://localhost:8761}/eureka/
# eureka.client.enabled=true
# eureka.instance.statusPageUrl=${cas.server.prefix}/status/info
# eureka.instance.healthCheckUrl=${cas.server.prefix}/status/health
# eureka.instance.homePageUrl=${cas.server.prefix}/
# eureka.client.healthcheck.enabled=true

# spring.cloud.config.discovery.enabled=false

Consul Service Discovery

To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
11
# spring.cloud.consul.port=8500
# spring.cloud.consul.enabled=true
# spring.cloud.consul.host=localhost

# spring.cloud.consul.discovery.healthCheckPath=${management.context-path}/health
# spring.cloud.consul.discovery.healthCheckPath=15s
# spring.cloud.consul.discovery.instanceId=${spring.application.name}:${random.value}

# spring.cloud.consul.discovery.heartbeat.enabled=true
# spring.cloud.consul.discovery.heartbeat.ttlValue=60
# spring.cloud.consul.discovery.heartbeat.ttlUnit=s

Provisioning

SCIM

Provision the authenticated CAS principal via SCIM. To learn more about this topic, please review this guide.

1
2
3
4
5
# cas.scim.version=2
# cas.scim.target=
# cas.scim.oauthToken=
# cas.scim.username=
# cas.scim.password=

CAS provides the ability to enforce user-informed consent upon attribute release. To learn more about this topic, please review this guide.

1
2
# cas.consent.reminder=30
# cas.consent.reminderTimeUnit=HOURS|DAYS|MONTHS

Signing & encryption settings for this feature are available here under the configuration key cas.consent. The signing and encryption keys are both JWKs of size 512 and 256.

1
# cas.consent.json.location=file:/etc/cas/config/consent.json
1
# cas.consent.groovy.location=file:/etc/cas/config/consent.groovy

Database settings for this feature are available here under the configuration key cas.consent.jpa.

LDAP settings for this feature are available here under the configuration key cas.consent.ldap.

1
# cas.consent.ldap.consentAttributeName=casConsentDecision

Common configuration settings for this feature are available here under the configuration key cas.consent.

1
# cas.consent.rest.endpoint=https://api.example.org/trustedBrowser

Apache Fortress Authentication

To learn more about this topic, please review this guide.

1
# cas.authn.fortress.rbaccontext=HOME

CAS Client

Configure settings relevant to the Java CAS client configured to handle inbound ticket validation operations, etc.

1
2
# cas.client.prefix=https://sso.example.org/cas
# cas.client.validatorType=CAS10|CAS20|CAS30

Password Management

Allow the user to update their account password, etc in-place. To learn more about this topic, please review this guide.

1
2
3
4
5
6
7
8
9
10
# cas.authn.pm.enabled=true

# Minimum 8 and Maximum 10 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character
# cas.authn.pm.policyPattern=^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])[A-Za-z\\d$@$!%*?&]{8,10}

# cas.authn.pm.reset.expirationMinutes=1
# cas.authn.pm.reset.securityQuestionsEnabled=true

# Automatically log in after successful password change
# cas.authn.pm.autoLogin=false

Email notifications settings for this feature are available here under the configuration key cas.authn.pm.reset.

The signing and encryption keys are both JWKs of size 512 and 256. The encryption algorithm is set to AES_128_CBC_HMAC_SHA_256. Signing & encryption settings for this feature are available here under the configuration key cas.authn.pm.reset.

JSON Password Management

1
# cas.authn.pm.json.location=classpath:jsonResourcePassword.json

Groovy Password Management

1
# cas.authn.pm.groovy.location=classpath:PasswordManagementService.groovy

LDAP Password Management

LDAP settings for this feature are available here under the configuration key cas.authn.pm.ldap.

1
2
3
4
5
6
# cas.authn.pm.ldap.type=AD|GENERIC|EDirectory|FreeIPA

# Attributes that should be fetched to indicate security questions and answers
# cas.authn.pm.ldap.securityQuestionsAttributes.attrQuestion1=attrAnswer1
# cas.authn.pm.ldap.securityQuestionsAttributes.attrQuestion2=attrAnswer2
# cas.authn.pm.ldap.securityQuestionsAttributes.attrQuestion3=attrAnswer3

JDBC Password Management

Database settings for this feature are available here under the configuration key cas.authn.pm.jdbc. Password encoding settings for this feature are available here under the configuration key cas.authn.pm.jdbc.

1
2
3
4
5
# The two fields indicated below are expected to be returned
# cas.authn.pm.jdbc.sqlSecurityQuestions=SELECT question, answer FROM table WHERE user=?

# cas.authn.pm.jdbc.sqlFindEmail=SELECT email FROM table WHERE user=?
# cas.authn.pm.jdbc.sqlChangePassword=UPDATE table SET password=? WHERE user=?

REST Password Management

1
2
3
# cas.authn.pm.rest.endpointUrlEmail=
# cas.authn.pm.rest.endpointUrlSecurityQuestions=
# cas.authn.pm.rest.endpointUrlChange=