WORKERS AHEAD!
You are viewing the development documentation for the Apereo CAS server. The functionality presented here is not officially released yet. This is a work in progress and will be continually updated as development moves forward. You are most encouraged to test the changes presented.
InfluxDb Storage - CAS Metrics
By default, metrics are exported to Influx running on your local machine. The location of the Influx server to use can be provided using:
The following settings and properties are available from the CAS configuration catalog:
- Required
- Optional
- Signing & Encryption
- Hibernate & JDBC
- Email Servers
- Groovy Scripting
- LDAP & Active Directory
- Authentication
- Password Encoding
- Principal Transformation
- Password Policy
- Third Party
- Notes
management.metrics.export.influx.api-version=
How can I configure this property?
CAS Property:
|
1 |
management.metrics.export.influx.api-version=... |
1
management:
metrics:
export:
influx:
api-version: "..."
1
java -Dmanagement.metrics.export.influx.api-version="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_API_VERSION="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.api-version="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.api-version
.
management.metrics.export.influx.auto-create-db=
How can I configure this property?
CAS Property: management.metrics.export.influx.auto-create-db
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.
.properties
files:
1
management.metrics.export.influx.auto-create-db=...
1
management:
metrics:
export:
influx:
auto-create-db: "..."
1
java -Dmanagement.metrics.export.influx.auto-create-db="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_AUTO_CREATE_DB="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.auto-create-db="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.auto-create-db
.
management.metrics.export.influx.batch-size=
How can I configure this property?
CAS Property: management.metrics.export.influx.batch-size
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.
.properties
files:
1
management.metrics.export.influx.batch-size=...
1
management:
metrics:
export:
influx:
batch-size: "..."
1
java -Dmanagement.metrics.export.influx.batch-size="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_BATCH_SIZE="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.batch-size="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.batch-size
.
management.metrics.export.influx.bucket=
How can I configure this property?
CAS Property: management.metrics.export.influx.bucket
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.
.properties
files:
1
management.metrics.export.influx.bucket=...
1
management:
metrics:
export:
influx:
bucket: "..."
1
java -Dmanagement.metrics.export.influx.bucket="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_BUCKET="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.bucket="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.bucket
.
management.metrics.export.influx.compressed=
How can I configure this property?
CAS Property: management.metrics.export.influx.compressed
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.
.properties
files:
1
management.metrics.export.influx.compressed=...
1
management:
metrics:
export:
influx:
compressed: "..."
1
java -Dmanagement.metrics.export.influx.compressed="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_COMPRESSED="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.compressed="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.compressed
.
management.metrics.export.influx.connect-timeout=
How can I configure this property?
CAS Property: management.metrics.export.influx.connect-timeout
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.
.properties
files:
1
management.metrics.export.influx.connect-timeout=...
1
management:
metrics:
export:
influx:
connect-timeout: "..."
1
java -Dmanagement.metrics.export.influx.connect-timeout="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_CONNECT_TIMEOUT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.connect-timeout="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.connect-timeout
.
management.metrics.export.influx.consistency=
How can I configure this property?
CAS Property: management.metrics.export.influx.consistency
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.
.properties
files:
1
management.metrics.export.influx.consistency=...
1
management:
metrics:
export:
influx:
consistency: "..."
1
java -Dmanagement.metrics.export.influx.consistency="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_CONSISTENCY="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.consistency="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.consistency
.
management.metrics.export.influx.db=
How can I configure this property?
CAS Property: management.metrics.export.influx.db
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.
.properties
files:
1
management.metrics.export.influx.db=...
1
management:
metrics:
export:
influx:
db: "..."
1
java -Dmanagement.metrics.export.influx.db="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_DB="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.db="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.db
.
management.metrics.export.influx.enabled=
How can I configure this property?
CAS Property: management.metrics.export.influx.enabled
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.
.properties
files:
1
management.metrics.export.influx.enabled=...
1
management:
metrics:
export:
influx:
enabled: "..."
1
java -Dmanagement.metrics.export.influx.enabled="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_ENABLED="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.enabled="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.enabled
.
management.metrics.export.influx.num-threads=
How can I configure this property?
CAS Property: management.metrics.export.influx.num-threads
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.
.properties
files:
1
management.metrics.export.influx.num-threads=...
1
management:
metrics:
export:
influx:
num-threads: "..."
1
java -Dmanagement.metrics.export.influx.num-threads="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_NUM_THREADS="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.num-threads="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
without a replacement setting.
management.metrics.export.influx.org=
How can I configure this property?
CAS Property: management.metrics.export.influx.org
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.
.properties
files:
1
management.metrics.export.influx.org=...
1
management:
metrics:
export:
influx:
org: "..."
1
java -Dmanagement.metrics.export.influx.org="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_ORG="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.org="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.org
.
management.metrics.export.influx.password=
How can I configure this property?
CAS Property: management.metrics.export.influx.password
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.
.properties
files:
1
management.metrics.export.influx.password=...
1
management:
metrics:
export:
influx:
password: "..."
1
java -Dmanagement.metrics.export.influx.password="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_PASSWORD="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.password="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.password
.
management.metrics.export.influx.read-timeout=
How can I configure this property?
CAS Property: management.metrics.export.influx.read-timeout
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.
.properties
files:
1
management.metrics.export.influx.read-timeout=...
1
management:
metrics:
export:
influx:
read-timeout: "..."
1
java -Dmanagement.metrics.export.influx.read-timeout="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_READ_TIMEOUT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.read-timeout="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.read-timeout
.
management.metrics.export.influx.retention-duration=
How can I configure this property?
CAS Property: management.metrics.export.influx.retention-duration
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.
.properties
files:
1
management.metrics.export.influx.retention-duration=...
1
management:
metrics:
export:
influx:
retention-duration: "..."
1
java -Dmanagement.metrics.export.influx.retention-duration="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_RETENTION_DURATION="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.retention-duration="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.retention-duration
.
management.metrics.export.influx.retention-policy=
How can I configure this property?
CAS Property: management.metrics.export.influx.retention-policy
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.
.properties
files:
1
management.metrics.export.influx.retention-policy=...
1
management:
metrics:
export:
influx:
retention-policy: "..."
1
java -Dmanagement.metrics.export.influx.retention-policy="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_RETENTION_POLICY="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.retention-policy="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.retention-policy
.
management.metrics.export.influx.retention-replication-factor=
How can I configure this property?
CAS Property: management.metrics.export.influx.retention-replication-factor
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.
.properties
files:
1
management.metrics.export.influx.retention-replication-factor=...
1
management:
metrics:
export:
influx:
retention-replication-factor: "..."
1
java -Dmanagement.metrics.export.influx.retention-replication-factor="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_RETENTION_REPLICATION_FACTOR="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.retention-replication-factor="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.retention-replication-factor
.
management.metrics.export.influx.retention-shard-duration=
How can I configure this property?
CAS Property: management.metrics.export.influx.retention-shard-duration
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.
.properties
files:
1
management.metrics.export.influx.retention-shard-duration=...
1
management:
metrics:
export:
influx:
retention-shard-duration: "..."
1
java -Dmanagement.metrics.export.influx.retention-shard-duration="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_RETENTION_SHARD_DURATION="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.retention-shard-duration="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.retention-shard-duration
.
management.metrics.export.influx.step=
How can I configure this property?
CAS Property: management.metrics.export.influx.step
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.
.properties
files:
1
management.metrics.export.influx.step=...
1
management:
metrics:
export:
influx:
step: "..."
1
java -Dmanagement.metrics.export.influx.step="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_STEP="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.step="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.step
.
management.metrics.export.influx.token=
How can I configure this property?
CAS Property: management.metrics.export.influx.token
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.
.properties
files:
1
management.metrics.export.influx.token=...
1
management:
metrics:
export:
influx:
token: "..."
1
java -Dmanagement.metrics.export.influx.token="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_TOKEN="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.token="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.token
.
management.metrics.export.influx.uri=
How can I configure this property?
CAS Property: management.metrics.export.influx.uri
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.
.properties
files:
1
management.metrics.export.influx.uri=...
1
management:
metrics:
export:
influx:
uri: "..."
1
java -Dmanagement.metrics.export.influx.uri="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_URI="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.uri="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.uri
.
management.metrics.export.influx.user-name=
How can I configure this property?
CAS Property: management.metrics.export.influx.user-name
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.
.properties
files:
1
management.metrics.export.influx.user-name=...
1
management:
metrics:
export:
influx:
user-name: "..."
1
java -Dmanagement.metrics.export.influx.user-name="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_METRICS_EXPORT_INFLUX_USER_NAME="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.metrics.export.influx.user-name="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: management.influx.metrics.export.user-name
.
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.
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, specially 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.