DO NOT USE THIS FOR PRODUCTION. It is only here as a way to figure out the dynamic styles
Based on: https://apereo.github.io/cas/development/ux/User-Interface-Customization-Themes.html
- Linux or Mac system
- Docker
- git
- git clone https://github.com/dannymk/cas-dynamic-style.git
- cd cas-dynamic-style
- git clone https://github.com/apereo/cas-overlay-template.git
- edit the file cas-overlay-template/build.gradle and add the following missing lines (as of this writting around line 74...)
dependencies {
// Other CAS dependencies/modules may be listed here...
// implementation "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"
implementation "org.apereo.cas:cas-server-support-json-service-registry:${casServerVersion}"
implementation "org.apereo.cas:cas-server-support-generic:${casServerVersion}"
}
- sh runBuild
- sh run
- Navigate to http://localhost:8080/cas/login You will get the default template here...
- Navigate to http://localhost:8080/cas/login?service=http://mydomain.com You will get the template defined as "foo"