Hello,
I encountered an issue with the customization of the theme. I have build the war following
https://apereo.github.io/cas/5.1.x/installation/User-Interface-Customization-Themes.html but the theme is not display after each war startup, here is the case :
1/ Build the war with the customize theme
2/ Start the application (java -jar target/cas.war)
3/ Display the default login page (
http://localhost:8443/cas/login)
==> the page is a broken default login page (I want the default login page without customization)
it doesn't work4/ Display the login page through a service which uses the customize theme
=> the page is a broken default login page (I want the customize login page)
it doesn't work5/ Restart the application
6/ Display the login page through a service which uses the customize theme (set the theme property in the service declaration)
=> the page is the custom one (the one I want) here
it works 7/ Display the default login page (
http://localhost:8443/cas/login)
=> the page is the custom one without css (I want the default login page)
it doesn't work8/ Stop the application
9/ Add properties in order to set the default theme
cas.theme.defaultThemeName=mytheme
10/ Start the application
11/ Display the default login page, but it's the same broken login page (as step 3) )
it doesn't work
12/ Restart the application
13/ Display the login page through a service which uses the customize theme
=> Sale as step 6 the page is the custom one,
it works14/ 7/ Display the default login page directly
=> The page is the custom one
it worksIn order to build the custom login page I have done the following :
src/main/resources/
.
├── mytheme.properties
├── static
│ └── themes
│ └── mytheme
│ ├── css
│ │ └── cas.css
│ ├── fonts
│ │ └── iconic
│ │ ├── css
│ │ │ ├── material-design-iconic-font.css
│ │ │ └── material-design-iconic-font.min.css
│ │ └── fonts
│ │ ├── Material-Design-Iconic-Font.eot
│ │ ├── Material-Design-Iconic-Font.svg
│ │ ├── Material-Design-Iconic-Font.ttf
│ │ ├── Material-Design-Iconic-Font.woff
│ │ └── Material-Design-Iconic-Font.woff2
│ ├── images
│ │ ├── bg-01.jpg
│ │ └── logo.gif
│ └── js
│ └── cas.js
└── templates
└── mytheme
└── casLoginView.html
with mytheme.properties :
standard.custom.css.file=/themes/mytheme/css/cas.css
standard.custom.js.file=/themes/mytheme/js/cas.js
What's wrong ?
Thanks in advance
Olivier Guilloux