Server-side Sessions - JDBC

If you don’t wish to use the native container’s strategy for session replication, you can use CAS’s support for JDBC session replication.

This feature is enabled via the following module:

1
2
3
4
5
<dependency>
    <groupId>org.apereo.cas</groupId>
    <artifactId>cas-server-support-session-jdbc</artifactId>
    <version>${cas.version}</version>
</dependency>
1
implementation "org.apereo.cas:cas-server-support-session-jdbc:${project.'cas.version'}"
1
2
3
4
5
6
7
8
9
dependencyManagement {
    imports {
        mavenBom "org.apereo.cas:cas-server-support-bom:${project.'cas.version'}"
    }
}

dependencies {
    implementation "org.apereo.cas:cas-server-support-session-jdbc"
}
1
2
3
4
5
6
7
8
9
10
dependencies {
    /*
        The following platform references are included automatically and are listed for reference only.

        implementation enforcedPlatform("org.apereo.cas:cas-server-support-bom:${project.'cas.version'}")
        implementation platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
        
    */
    implementation "org.apereo.cas:cas-server-support-session-jdbc"
}

The following settings and properties are available from the CAS configuration catalog:

spring.datasource.azure.credential.client-certificate-passwordPassword of the certificate file.
no default
Third party

Password of the certificate file.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.credential.client-certificate-pathPath of a PEM certificate file to use when performing service principal authentication with Azure.
no default
Third party

Path of a PEM certificate file to use when performing service principal authentication with Azure.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.credential.client-idClient ID to use when performing service principal authentication with Azure.
no default
Third party

Client ID to use when performing service principal authentication with Azure.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.credential.client-secretClient secret to use when performing service principal authentication with Azure.
no default
Third party

Client secret to use when performing service principal authentication with Azure.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.credential.managed-identity-enabledWhether to enable managed identity to authenticate with Azure.
false
Third party

Whether to enable managed identity to authenticate with Azure. If true and the client-id is set, will use the client ID as user assigned managed identity client ID.

Type
Boolean
Default
false
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.credential.passwordPassword to use when performing username/password authentication with Azure.
no default
Third party

Password to use when performing username/password authentication with Azure.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.credential.usernameUsername to use when performing username/password authentication with Azure.
no default
Third party

Username to use when performing username/password authentication with Azure.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.passwordless-enabledWhether to enable passwordless connections to Azure databases by using OAuth2 Microsoft Entra token credentials.
false
Third party

Whether to enable passwordless connections to Azure databases by using OAuth2 Microsoft Entra token credentials.

Type
Boolean
Default
false
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.profile.cloud-typeName of the Azure cloud to connect to.
no default
Third party

Name of the Azure cloud to connect to. Supported types are: AZURE, AZURE_CHINA, AZURE_US_GOVERNMENT, OTHER. The default value is `AZURE`.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.profile.environment.active-directory-endpointThe Microsoft Entra endpoint to connect to.
no default
Third party

The Microsoft Entra endpoint to connect to.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.azure.profile.tenant-idTenant ID for Azure resources.
no default
Third party

Tenant ID for Azure resources. The values allowed for 'tenant-id' are: 'common', 'organizations', 'consumers', or the tenant ID.

Type
String
Default
none
Defined by
AzureJdbcPasswordlessProperties
spring.datasource.connection-fetchWhether the auto-configured DataSource should be wrapped in a proxy that fetches JDBC connections as late as possible.
eager
Third party

Whether the auto-configured DataSource should be wrapped in a proxy that fetches JDBC connections as late as possible.

Type
String
Default
eager
spring.datasource.continue-on-error
no default
Third partyDeprecated
Type
Boolean
Default
none
Deprecation
ERROR, replaced by spring.sql.init.continue-on-error
spring.datasource.data
no default
Third partyDeprecated
Type
List<String>
Default
none
Deprecation
ERROR, replaced by spring.sql.init.data-locations
spring.datasource.data-password
no default
Third partyDeprecated
Type
String
Default
none
Deprecation
ERROR, replaced by spring.sql.init.password
spring.datasource.data-username
no default
Third partyDeprecated
Type
String
Default
none
Deprecation
ERROR, replaced by spring.sql.init.username
spring.datasource.dbcp2.abandoned-usage-tracking
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.access-to-underlying-connection-allowed
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.auto-commit-on-return
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.cache-state
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.clear-statement-pool-on-return
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.connection-factory-class-name
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.connection-init-sqls
no default
Third party
Type
List<String>
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.default-auto-commit
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.default-catalog
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.default-query-timeout
no default
Third partyDeprecated
Type
Integer
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.default-read-only
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.default-schema
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.default-transaction-isolation
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.disconnection-ignore-sql-codes
no default
Third party
Type
Set<String>
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.disconnection-sql-codes
no default
Third party
Type
Set<String>
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.driver-class-name
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.duration-between-eviction-runs
no default
Third party
Type
Duration
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.enable-auto-commit-on-return
no default
Third partyDeprecated
Type
Boolean
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.eviction-policy-class-name
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.fast-fail-validation
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.initial-size
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.jmx-name
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.lifo
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.log-abandoned
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.log-expired-connections
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.login-timeout
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.max-conn-lifetime-millis
no default
Third partyDeprecated
Type
Long
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.max-idle
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.max-open-prepared-statements
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.max-total
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.max-wait-millis
no default
Third partyDeprecated
Type
Long
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.min-evictable-idle-time-millis
no default
Third partyDeprecated
Type
Long
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.min-idle
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.num-tests-per-eviction-run
no default
Third party
Type
Integer
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.password
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.pool-prepared-statements
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.remove-abandoned-on-borrow
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.remove-abandoned-on-maintenance
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.remove-abandoned-timeout
no default
Third partyDeprecated
Type
Integer
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.rollback-on-return
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.soft-min-evictable-idle-time-millis
no default
Third partyDeprecated
Type
Long
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.test-on-borrow
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.test-on-create
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.test-on-return
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.test-while-idle
no default
Third party
Type
Boolean
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.time-between-eviction-runs-millis
no default
Third partyDeprecated
Type
Long
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.dbcp2.url
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.username
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.validation-query
no default
Third party
Type
String
Default
none
Defined by
BasicDataSource
spring.datasource.dbcp2.validation-query-timeout
no default
Third partyDeprecated
Type
Integer
Default
none
Defined by
BasicDataSource
Deprecation
WARNING, no replacement
spring.datasource.driver-class-nameFully qualified name of the JDBC driver.
no default
Third party

Fully qualified name of the JDBC driver. Auto-detected based on the URL by default.

Type
String
Default
none
Defined by
DataSourceProperties
spring.datasource.embedded-database-connectionConnection details for an embedded database.
no default
Third party

Connection details for an embedded database. Defaults to the most suitable embedded database that is available on the classpath.

Type
EmbeddedDatabaseConnection
Default
none
Defined by
DataSourceProperties
spring.datasource.generate-unique-nameWhether to generate a random datasource name.
true
Third party

Whether to generate a random datasource name.

Type
Boolean
Default
true
Defined by
DataSourceProperties
spring.datasource.hikari.allow-pool-suspension
no default
Third party
Type
Boolean
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.auto-commit
no default
Third party
Type
Boolean
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.catalog
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.connection-init-sql
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.connection-test-query
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.connection-timeout
no default
Third party
Type
Long
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.credentials-provider-class-name
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.data-source-class-name
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.data-source-j-n-d-i
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.data-source-properties
no default
Third party
Type
Properties
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.driver-class-name
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.exception-override-class-name
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.health-check-properties
no default
Third party
Type
Properties
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.idle-timeout
no default
Third party
Type
Long
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.initialization-fail-timeout
no default
Third party
Type
Long
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.isolate-internal-queries
no default
Third party
Type
Boolean
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.jdbc-url
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.keepalive-time
no default
Third party
Type
Long
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.leak-detection-threshold
no default
Third party
Type
Long
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.login-timeout
no default
Third party
Type
Integer
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.max-lifetime
no default
Third party
Type
Long
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.maximum-pool-size
no default
Third party
Type
Integer
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.minimum-idle
no default
Third party
Type
Integer
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.password
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.pool-name
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.read-only
no default
Third party
Type
Boolean
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.register-mbeans
no default
Third party
Type
Boolean
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.schema
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.transaction-isolation
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.username
no default
Third party
Type
String
Default
none
Defined by
HikariDataSource
spring.datasource.hikari.validation-timeout
no default
Third party
Type
Long
Default
none
Defined by
HikariDataSource
spring.datasource.initialization-mode
no default
Third partyDeprecated
Type
DatabaseInitializationMode
Default
none
Deprecation
ERROR, replaced by spring.sql.init.mode
spring.datasource.jmx-enabledWhether to enable JMX support (if provided by the underlying pool).
false
Third partyDeprecated

Whether to enable JMX support (if provided by the underlying pool).

Type
Boolean
Default
false
Deprecation
ERROR, replaced by spring.datasource.tomcat.jmx-enabled
spring.datasource.jndi-nameJNDI location of the datasource.
no default
Third party

JNDI location of the datasource. Class, url, username and password are ignored when set.

Type
String
Default
none
Defined by
DataSourceProperties
spring.datasource.nameDatasource name to use if "generate-unique-name" is false.
no default
Third party

Datasource name to use if "generate-unique-name" is false. Defaults to "testdb" when using an embedded database, otherwise null.

Type
String
Default
none
Defined by
DataSourceProperties
spring.datasource.oracleucp.abandoned-connection-timeout
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.commit-on-connection-return
no default
Third party
Type
Boolean
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-affinity-callback
no default
Third party
Type
ConnectionAffinityCallback
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-creation-consumer
no default
Third party
Type
Consumer<ConnectionCreationInformation>
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-factory-class-name
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-factory-properties
no default
Third party
Type
Properties
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-harvest-max-count
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-harvest-trigger-count
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-initialization-callback
no default
Third party
Type
ConnectionInitializationCallback
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-labeling-callback
no default
Third party
Type
ConnectionLabelingCallback
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-labeling-high-cost
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-pool-name
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-properties
no default
Third party
Type
Properties
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-repurpose-threshold
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-validation-timeout
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-wait-duration
no default
Third party
Type
Duration
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.connection-wait-timeout
no default
Third partyDeprecated
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
Deprecation
WARNING, no replacement
spring.datasource.oracleucp.connection-wait-timeout-while-service-down
no default
Third party
Type
Long
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.create-connection-in-borrow-thread
no default
Third party
Type
Boolean
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.data-source-name
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.database-name
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.description
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.fast-connection-failover-enabled
no default
Third party
Type
Boolean
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.high-cost-connection-reuse-threshold
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.inactive-connection-timeout
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.initial-pool-size
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.login-timeout
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.max-connection-reuse-count
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.max-connection-reuse-time
no default
Third party
Type
Long
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.max-connections-per-shard
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.max-idle
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.max-idle-time
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.max-pool-size
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.max-statements
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.min-idle
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.min-pool-size
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.network-protocol
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.o-n-s-configuration
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.password
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.pdb-roles
no default
Third party
Type
Properties
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.port-number
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.property-cycle
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.query-timeout
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.read-only-instance-allowed
no default
Third party
Type
Boolean
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.s-q-l-for-validate-connection
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.seconds-to-trust-idle-connection
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.server-name
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.sharding-mode
no default
Third party
Type
Boolean
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.time-to-live-connection-timeout
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.timeout-check-interval
no default
Third party
Type
Integer
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.u-r-l
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.user
no default
Third party
Type
String
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.oracleucp.validate-connection-on-borrow
no default
Third party
Type
Boolean
Default
none
Defined by
PoolDataSourceImpl
spring.datasource.passwordLogin password of the database.
no default
Third party

Login password of the database.

Type
String
Default
none
Defined by
DataSourceProperties
spring.datasource.platform
no default
Third partyDeprecated
Type
String
Default
none
Deprecation
ERROR, replaced by spring.sql.init.platform
spring.datasource.schema
no default
Third partyDeprecated
Type
List<String>
Default
none
Deprecation
ERROR, replaced by spring.sql.init.schema-locations
spring.datasource.schema-password
no default
Third partyDeprecated
Type
String
Default
none
Deprecation
ERROR, replaced by spring.sql.init.password
spring.datasource.schema-username
no default
Third partyDeprecated
Type
String
Default
none
Deprecation
ERROR, replaced by spring.sql.init.username
spring.datasource.separator
no default
Third partyDeprecated
Type
String
Default
none
Deprecation
ERROR, replaced by spring.sql.init.separator
spring.datasource.sql-script-encoding
no default
Third partyDeprecated
Type
Charset
Default
none
Deprecation
ERROR, replaced by spring.sql.init.encoding
spring.datasource.tomcat.abandon-when-percentage-full
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.access-to-underlying-connection-allowed
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.alternate-username-allowed
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.commit-on-return
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.connection-properties
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.data-source-j-n-d-i
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.db-properties
no default
Third party
Type
Properties
Default
none
Defined by
DataSource
spring.datasource.tomcat.default-auto-commit
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.default-catalog
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.default-read-only
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.default-transaction-isolation
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.driver-class-name
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.fair-queue
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.ignore-exception-on-pre-load
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.init-s-q-l
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.initial-size
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.jdbc-interceptors
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.jmx-enabled
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.log-abandoned
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.log-validation-errors
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.login-timeout
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.max-active
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.max-age
no default
Third party
Type
Long
Default
none
Defined by
DataSource
spring.datasource.tomcat.max-idle
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.max-wait
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.min-evictable-idle-time-millis
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.min-idle
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.name
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.num-tests-per-eviction-run
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.password
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.propagate-interrupt-state
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.remove-abandoned
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.remove-abandoned-timeout
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.rollback-on-return
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.suspect-timeout
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.test-on-borrow
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.test-on-connect
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.test-on-return
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.test-while-idle
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.time-between-eviction-runs-millis
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.url
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.use-disposable-connection-facade
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.use-equals
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.use-lock
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.use-statement-facade
no default
Third party
Type
Boolean
Default
none
Defined by
DataSource
spring.datasource.tomcat.username
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.validation-interval
no default
Third party
Type
Long
Default
none
Defined by
DataSource
spring.datasource.tomcat.validation-query
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.tomcat.validation-query-timeout
no default
Third party
Type
Integer
Default
none
Defined by
DataSource
spring.datasource.tomcat.validator-class-name
no default
Third party
Type
String
Default
none
Defined by
DataSource
spring.datasource.typeFully qualified name of the DataSource implementation to use.
no default
Third party

Fully qualified name of the DataSource implementation to use. By default, a connection pool implementation is auto-detected from the classpath.

Type
Class<? extends DataSource>
Default
none
Defined by
DataSourceProperties
spring.datasource.urlJDBC URL of the database.
no default
Third party

JDBC URL of the database.

Type
String
Default
none
Defined by
DataSourceProperties
spring.datasource.usernameLogin username of the database.
no default
Third party

Login username of the database.

Type
String
Default
none
Defined by
DataSourceProperties
spring.datasource.xa.data-source-class-nameXA datasource fully qualified name.
no default
Third party

XA datasource fully qualified name.

Type
String
Default
none
Defined by
DataSourceProperties$Xa
spring.datasource.xa.propertiesProperties to pass to the XA data source.
no default
Third party

Properties to pass to the XA data source.

Type
Map<String,String>
Default
none
Defined by
DataSourceProperties$Xa
spring.session.jdbc.cleanup-cronCron expression for expired session cleanup job.
0 * * * * *
Third party

Cron expression for expired session cleanup job.

Type
String
Default
0 * * * * *
Defined by
JdbcSessionProperties
spring.session.jdbc.continue-on-errorWhether initialization should continue when an error occurs when applying a schema script.
true
Third party

Whether initialization should continue when an error occurs when applying a schema script.

Type
Boolean
Default
true
Defined by
JdbcSessionProperties
spring.session.jdbc.flush-modeSessions flush mode.
on-save
Third party

Sessions flush mode. Determines when session changes are written to the session store.

Type
FlushMode
Default
on-save
Defined by
JdbcSessionProperties
spring.session.jdbc.initialize-schemaDatabase schema initialization mode.
embedded
Third party

Database schema initialization mode.

Type
DatabaseInitializationMode
Default
embedded
Defined by
JdbcSessionProperties
spring.session.jdbc.platformPlatform to use in initialization scripts if the @@platform@@ placeholder is used.
no default
Third party

Platform to use in initialization scripts if the @@platform@@ placeholder is used. Auto-detected by default.

Type
String
Default
none
Defined by
JdbcSessionProperties
spring.session.jdbc.save-modeSessions save mode.
on-set-attribute
Third party

Sessions save mode. Determines how session changes are tracked and saved to the session store.

Type
SaveMode
Default
on-set-attribute
Defined by
JdbcSessionProperties
spring.session.jdbc.schemaPath to the SQL file to use to initialize the database schema.
no default
Third party

Path to the SQL file to use to initialize the database schema.

Type
String
Default
none
Defined by
JdbcSessionProperties
spring.session.jdbc.table-nameName of the database table used to store sessions.
SPRING_SESSION
Third party

Name of the database table used to store sessions.

Type
String
Default
SPRING_SESSION
Defined by
JdbcSessionProperties

Required settings may be needed to activate or affect the feature; review them even when they have a default. Optional settings only need to be set to change a default or to turn on the behavior they control. Third party settings belong to libraries such as Spring Boot that CAS builds on; their own documentation may have more detail.

Hibernate & JDBC

Control global properties that are relevant to Hibernate, when CAS attempts to employ and utilize database resources, connections and queries.

cas.jdbc.gen-ddlWhether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.
true

Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.

Type
Boolean
Default
true
Defined by
DatabaseProperties
cas.jdbc.physical-table-namesIndicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database.
no default

Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database. The key here indicates the CAS-provided table name and the value is the translate physical name for the database. If a match is not found for the CAS-provided table name, then that name will be used by default.

Type
Map<String,String>
Default
none
Defined by
DatabaseProperties
cas.jdbc.show-sqlWhether SQL queries should be displayed in the console/logs.
false

Whether SQL queries should be displayed in the console/logs.

Type
Boolean
Default
false
Defined by
DatabaseProperties
Groovy scripting

CAS takes advantage of Apache Groovy in forms of either embedded or external scripts that allow one to, by default, dynamically build constructs, attributes, access strategies and a lot more. To activate the functionality described here, you may need to prepare CAS to support and integrate with Apache Groovy.

Please review this guide to configure your build.

Notes on configuration

Configuration Metadata

The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.

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.

YAGNI

Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.

Naming Convention

Property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property are all valid names. While all forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those that might be presented to the system via an external library or framework such as Spring Boot, etc.

:information_source: Note

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value. The only possible exception to this rule is when naming actuator endpoints; The name of the actuator endpoints (i.e. ssoSessions) MUST remain in camelCase mode.

Settings and properties that are controlled by the CAS platform directly always begin with the prefix cas. All other settings are controlled and provided to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the way you intend.

Validation

Configuration properties are automatically validated on CAS startup to report issues with configuration binding, especially if defined CAS settings cannot be recognized or validated by the configuration schema. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.

Indexed Settings

CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value. The index [0] is meant to be incremented by the adopter to allow for distinct multiple configuration blocks.