CAS 5.2.2 how can I setting custom login page?

1,166 views
Skip to first unread message

ChangWon Son

unread,
Mar 22, 2018, 3:43:47 AM3/22/18
to CAS Community
Hi.

build cas server using cas-overlay-template project
I can't find any document about custom login page setting.

or

display only default cas login theme


same setting above article 

custom casLoginView.html created and put in cas-gradle-overlay-template/src/main/resources/templates directory

cas.properties 

cas.theme.paramName=theme
cas.theme.defaultThemeName=xxxx

and..

cas-gradle-overlay-template/src/main/resources/service/xxxx-10000001.json
{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^https://.*",
  "name" : "xxxx",
  "theme": "xxxx",
  "id" : 10000001,
  "evaluationOrder" : 10,
  "attributeReleasePolicy" : {
    "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
  }
}



but only display default theme login page..

how can I setting custom login page? 

Ben Howell-Thomas

unread,
Mar 23, 2018, 12:39:43 PM3/23/18
to cas-...@apereo.org
You can maven override it.  Find loginform.html in the CAS source.  

Copy it (and as much of the associated parts as needed) into your maven override project.

loginform.html will end up under src/main/resources/templates/fragments/loginform.html

--
- 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/fa93aa61-cb1c-467e-80a7-f1639ef5459f%40apereo.org.


This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). 
If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully;  (ii) contact Northgate Public Services immediately on +44(0)1442 768445 quoting the name of the sender and the addressee then delete it from your system.
Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted.  You should scan attachments (if any) for viruses.

Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NW.  Rave Technologies (India) Pvt Limited, registered in India under number 117068 with a registered address of 2nd Floor, Ballard House, Adi Marzban Marg, Ballard Estate, Mumbai, Maharashtra, India, 400001.
Reply all
Reply to author
Forward
0 new messages