[cas 5.1.8] Issue encountered with the customization of the theme

93 views
Skip to first unread message

Olivier Guilloux

unread,
Mar 29, 2018, 6:23:19 AM3/29/18
to CAS Community
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 work
4/ 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 work

5/ 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 work

8/ 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 works
14/ 7/ Display the default login page directly
  => The page is the custom one it works

In 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

Uxío Prego

unread,
Apr 2, 2018, 10:46:37 AM4/2/18
to CAS Community
... http://localhost:8443/cas/login is a poorly idiomatic configuration, hinting... that, or something else might be wrong?

Nowadays it is rare to listen HTTP on port 8443.

On port 8443 you would better want to listen HTTPS, and often the mean Java application server only serves HTTP on 8080 to a trusted proxy where HTTPS is handled.

Uxío Prego

             

Madiva Soluciones
CL / SERRANO GALVACHE 56
BLOQUE ABEDUL PLANTA 4
28033 MADRID

+34 917 56 84 94
www.madiva.com
www.bbva.com

The activity of email inboxes can be systematically tracked by colleagues, business partners and third parties. Turn off automatic loading of images to hamper it.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/2b21006e-4ac7-40d0-ab84-1e2ed56d9dbd%40apereo.org.

Olivier Guilloux

unread,
Apr 17, 2018, 5:41:01 AM4/17/18
to cas-...@apereo.org
Thank's for your answer, I have made a mistake in my report, it's https:// instead of http:// the issue still there.

Regard's



To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
Reply all
Reply to author
Forward
0 new messages