CAS Rebranding
How to enable customization
To make changes in branding of IDM login via CAS you must enable customizations.
- Check
/data/registry/node-active-config/docker-compose-cas.yml
- You do not need to change anything if in section
environment:
the attribute- CAS_CUSTOM_FRONTEND=true
is set
- Otherwise add this line and restart CAS container with
systemctl restart iam-cas
Frontend modifications
Any change mentioned below has immediate effect after edit and save
Change of logo in header
Replace file /data/volumes/web-proxy/static/cas/images/logo-header.png
Change of main color
Main css file is /data/volumes/web-proxy/static/cas/css/cas.css
To change you can use any text editor, e.g. nano
If you change line –cas-theme-primary: #072E5E;
to proper hex code of color, it will affect all main colors in settings.
IAM APPLIANCE REBRANDING
Setting of theme
Setting of theme is to be done in jar of respective customer modile (replace "customer" with appropriate name) /data/volumes/czechidm/modules/idm-customer-X.X.X.jar
You must create proper files and folders in jar. Go to fe-sources/czechidm-modules/czechidm-customer/themes/customer/
- add
css/main.less
with changes from original iam css - add images to
images/
which will be used
Modified jar must be compiled and applied on environment.
Enabling new theme
IAM needs to know to use this new settings.
- go to
/data/volumes/czechidm/frontend-config/default/production.json
(or create it, if it does not exist) - content is defined on GitHubu: https://github.com/bcvsolutions/CzechIdMng/blob/10.8.3/Realization/frontend/czechidm-app/config/default/production.json - in the file change defalt theme to
"theme": "czechidm-customer/themes/customer"
(change customer to match names used in steps during setting the theme)