Hi,
I have got 7.0.0 cas-overlay-template. Docker container has got mapped
volumens to container. CAS started but for registered service it doesn't
use motive hamster ,i cannot see in debug the it couldn't found hamster
. I would like to use this customization by registered service.
gradle.propierties:
-----------------------------
version=7.0.0-SNAPSHOT
# CAS server version
cas.version=7.0.0-SNAPSHOT
download views via gradlew
cd /proj7/src/main/resources
mkdir hamster < -extra motive
In the project i have got in custom line:
/proj/src/main/resources/templates# ls
error fragments layout.html login hamster
hamster tree
├── fragments
│ ├── footer.html
│ ├── header.html
│ └── loginform.html
├── layout.html
└── login
└── casLoginView.html
cas.properties
spring.thymeleaf.prefix=classpath:/templates/ < - probably not needed
cas.view.template-prefixes[0]=file:///etc/cas/templates
src/main/resources/application.yml
spring:
thymeleaf:
cache: false
web:
resources:
static-locations:
- file:/etc/cas/static/
src/main/resources/hamster.properties
---------------------------------------------------------------
cas.theme.defaultThemeName=hamster
cas.standard.css.file=/themes/hamster/css/cas.css
cas.standard.js.file=/themes/hamster/js/cas.js
hamster.login.images.path=/themes/hamster/images
In working container i can see mapped dirs :
------------------------------------------------
ls /etc/cas/
config services static templates
cd templates/hamster
fragments layout.html login
I copied customized view from project to host before preparing image of
cas.So in dir
/etc/cas/templates/hamster are the same what is in
src/main/resources/template/hamster
In views belonging to hamster i changed links like layout.html ( i had
had like this in v6.4,it was working)
(this is new part code in 7.0.0 comaparing to 6,4 , but it doesn't matter
. I am emphesising that i have made some changes in links only like in i.e
6.4 )
<span th:remove="tag" th:if="${'true' ==
#strings.defaultString(#themes.code('cas.css.core.enabled'), 'true')}">
<span th:replace="~{hamster/fragments/includes :: stylesheets}">
<a href="hamster/fragments/includes.html">Theme</a> stylesheet
fragment will go here
</span>
</span>
service dd-1.json
------------------------
"@class" : "org.apereo.cas.services.CasRegisteredService",
"serviceId" : "^(http|https|imaps)://service.conm/.*",
"id" : 1,
"evaluationOrder" : 0,
"theme" : "nextor"
Does anybody knows how to overcome difficulties . CSS js customized it
seems work but customized views no?
--
- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ea15c0b2-d708-486b-a57f-2ac938aaf44dn%40apereo.org.