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.
Apache Tomcat - Embedded Servlet Container Proxying
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
- Notes
cas.server.tomcat.http-proxy.enabled=false
Enable the container running in proxy mode.
CAS Property:
|
1 |
cas.server.tomcat.http-proxy.enabled=... |
1
cas:
server:
tomcat:
http-proxy:
enabled: "..."
1
java -Dcas.server.tomcat.http-proxy.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 CAS_SERVER_TOMCAT_HTTP_PROXY_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 --cas.server.tomcat.http-proxy.enabled="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http[0].enabled=
Enable a separate port for the embedded container for HTTP access.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProperties.
CAS Property: cas.server.tomcat.http[].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
cas.server.tomcat.http[0].enabled=...
1
cas:
server:
tomcat:
http[0]:
enabled: "..."
1
java -Dcas.server.tomcat.http[0].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 CAS_SERVER_TOMCAT_HTTP[0]_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 --cas.server.tomcat.http[0].enabled="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http=
Embedded container HTTP port settings as an additional option.
CAS Property:
|
1 |
cas.server.tomcat.http=... |
1
cas:
server:
tomcat:
http: "..."
1
java -Dcas.server.tomcat.http="..." -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 CAS_SERVER_TOMCAT_HTTP="..."
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 --cas.server.tomcat.http="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http-proxy.attributes=
Custom attributes to set on the proxy connector.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProxyProperties.
CAS Property: cas.server.tomcat.http-proxy.attributes
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
cas.server.tomcat.http-proxy.attributes=...
1
cas:
server:
tomcat:
http-proxy:
attributes: "..."
1
java -Dcas.server.tomcat.http-proxy.attributes="..." -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 CAS_SERVER_TOMCAT_HTTP_PROXY_ATTRIBUTES="..."
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 --cas.server.tomcat.http-proxy.attributes="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http-proxy.protocol=AJP/1.3
Proxy protocol to use.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProxyProperties.
CAS Property: cas.server.tomcat.http-proxy.protocol
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
cas.server.tomcat.http-proxy.protocol=AJP/1.3
1
cas:
server:
tomcat:
http-proxy:
protocol: "AJP/1.3"
1
java -Dcas.server.tomcat.http-proxy.protocol="AJP/1.3" -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 CAS_SERVER_TOMCAT_HTTP_PROXY_PROTOCOL="AJP/1.3"
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 --cas.server.tomcat.http-proxy.protocol="AJP/1.3"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http-proxy.proxy-port=0
Proxy port for the proxy.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProxyProperties.
CAS Property: cas.server.tomcat.http-proxy.proxy-port
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
cas.server.tomcat.http-proxy.proxy-port=0
1
cas:
server:
tomcat:
http-proxy:
proxy-port: "0"
1
java -Dcas.server.tomcat.http-proxy.proxy-port="0" -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 CAS_SERVER_TOMCAT_HTTP_PROXY_PROXY_PORT="0"
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 --cas.server.tomcat.http-proxy.proxy-port="0"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http-proxy.redirect-port=0
Redirect port for the proxy.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProxyProperties.
CAS Property: cas.server.tomcat.http-proxy.redirect-port
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
cas.server.tomcat.http-proxy.redirect-port=0
1
cas:
server:
tomcat:
http-proxy:
redirect-port: "0"
1
java -Dcas.server.tomcat.http-proxy.redirect-port="0" -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 CAS_SERVER_TOMCAT_HTTP_PROXY_REDIRECT_PORT="0"
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 --cas.server.tomcat.http-proxy.redirect-port="0"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http-proxy.scheme=https
Scheme used for the proxy.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProxyProperties.
CAS Property: cas.server.tomcat.http-proxy.scheme
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
cas.server.tomcat.http-proxy.scheme=https
1
cas:
server:
tomcat:
http-proxy:
scheme: "https"
1
java -Dcas.server.tomcat.http-proxy.scheme="https" -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 CAS_SERVER_TOMCAT_HTTP_PROXY_SCHEME="https"
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 --cas.server.tomcat.http-proxy.scheme="https"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http-proxy.secret=
Set the secret that must be included with every request.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProxyProperties.
CAS Property: cas.server.tomcat.http-proxy.secret
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
cas.server.tomcat.http-proxy.secret=...
1
cas:
server:
tomcat:
http-proxy:
secret: "..."
1
java -Dcas.server.tomcat.http-proxy.secret="..." -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 CAS_SERVER_TOMCAT_HTTP_PROXY_SECRET="..."
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 --cas.server.tomcat.http-proxy.secret="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http-proxy.secure=true
Whether proxy should run in secure mode.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProxyProperties.
CAS Property: cas.server.tomcat.http-proxy.secure
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
cas.server.tomcat.http-proxy.secure=true
1
cas:
server:
tomcat:
http-proxy:
secure: "true"
1
java -Dcas.server.tomcat.http-proxy.secure="true" -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 CAS_SERVER_TOMCAT_HTTP_PROXY_SECURE="true"
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 --cas.server.tomcat.http-proxy.secure="true"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http[0].attributes=
Additional attributes to be set on the connector.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProperties.
CAS Property: cas.server.tomcat.http[].attributes
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
cas.server.tomcat.http[0].attributes=...
1
cas:
server:
tomcat:
http[0]:
attributes: "..."
1
java -Dcas.server.tomcat.http[0].attributes="..." -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 CAS_SERVER_TOMCAT_HTTP[0]_ATTRIBUTES="..."
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 --cas.server.tomcat.http[0].attributes="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http[0].port=8080
The HTTP port to use.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProperties.
CAS Property: cas.server.tomcat.http[].port
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
cas.server.tomcat.http[0].port=8080
1
cas:
server:
tomcat:
http[0]:
port: "8080"
1
java -Dcas.server.tomcat.http[0].port="8080" -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 CAS_SERVER_TOMCAT_HTTP[0]_PORT="8080"
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 --cas.server.tomcat.http[0].port="8080"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http[0].protocol=org.apache.coyote.http11.Http11NioProtocol
HTTP protocol to use.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProperties.
CAS Property: cas.server.tomcat.http[].protocol
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
cas.server.tomcat.http[0].protocol=org.apache.coyote.http11.Http11NioProtocol
1
cas:
server:
tomcat:
http[0]:
protocol: "org.apache.coyote.http11.Http11NioProtocol"
1
java -Dcas.server.tomcat.http[0].protocol="org.apache.coyote.http11.Http11NioProtocol" -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 CAS_SERVER_TOMCAT_HTTP[0]_PROTOCOL="org.apache.coyote.http11.Http11NioProtocol"
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 --cas.server.tomcat.http[0].protocol="org.apache.coyote.http11.Http11NioProtocol"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http[0].redirect-port=
If this Connector is supporting non-SSL requests, this will automatically redirect the request to the port number specified here. Matching security constraints that require SSL transport will be auto-defined.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProperties.
CAS Property: cas.server.tomcat.http[].redirect-port
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
cas.server.tomcat.http[0].redirect-port=...
1
cas:
server:
tomcat:
http[0]:
redirect-port: "..."
1
java -Dcas.server.tomcat.http[0].redirect-port="..." -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 CAS_SERVER_TOMCAT_HTTP[0]_REDIRECT_PORT="..."
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 --cas.server.tomcat.http[0].redirect-port="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http[0].scheme=http
Scheme used for the connector.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProperties.
CAS Property: cas.server.tomcat.http[].scheme
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
cas.server.tomcat.http[0].scheme=http
1
cas:
server:
tomcat:
http[0]:
scheme: "http"
1
java -Dcas.server.tomcat.http[0].scheme="http" -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 CAS_SERVER_TOMCAT_HTTP[0]_SCHEME="http"
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 --cas.server.tomcat.http[0].scheme="http"
cas.war
with an embedded server container and can be found in the build/libs
directory.
cas.server.tomcat.http[0].secure=
Whether connector should run in secure mode.
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatHttpProperties.
CAS Property: cas.server.tomcat.http[].secure
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
cas.server.tomcat.http[0].secure=...
1
cas:
server:
tomcat:
http[0]:
secure: "..."
1
java -Dcas.server.tomcat.http[0].secure="..." -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 CAS_SERVER_TOMCAT_HTTP[0]_SECURE="..."
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 --cas.server.tomcat.http[0].secure="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
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.