cas-overlay 5.2 personalization

264 views
Skip to first unread message

vallee.romain

unread,
Dec 8, 2017, 2:17:03 AM12/8/17
to CAS Community
I spent a lot of time customizing the cas-overlay.
I hope this structure can help some people.

src
└── main
    └── resources
        ├── cas_audit.log
        ├── cas.log
        ├── esig.properties
        ├── messages_fr.properties
        ├── messages.properties
        ├── perfStats.log
        ├── services
        ├── static
        │   └── themes
        │       └── esig
        │           ├── css
        │           │   └── cas.css
        │           ├── images
        │           │   ├── apereo-logo.png
        │           │   ├── cas-logo.png
        │           │   └── logo.png
        │           └── js
        │               └── cas.js
        └── templates
            ├── esig
            │   ├── casAcceptableUsagePolicyView.html
            │   ├── casAccountDisabledView.html
            │   ├── casAccountLockedView.html
            │   ├── casAuthenticationBlockedView.html
            │   ├── casAuthyLoginView.html
            │   ├── casAzureAuthenticatorLoginView.html
            │   ├── casBadHoursView.html
            │   ├── casBadWorkstationView.html
            │   ├── casConfirmLogoutView.html
            │   ├── casConfirmView.html
            │   ├── casConsentLogoutView.html
            │   ├── casConsentReviewView.html
            │   ├── casConsentView.html
            │   ├── casDuoLoginView.html
            │   ├── casExpiredPassView.html
            │   ├── casGenericSuccessView.html
            │   ├── casGoogleAuthenticatorLoginView.html
            │   ├── casGoogleAuthenticatorRegistrationView.html
            │   ├── casGuaDisplayUserGraphicsView.html
            │   ├── casGuaGetUserIdView.html
            │   ├── casInterruptView.html
            │   ├── casLoginMessageView.html
            │   ├── casLoginView.html
            │   ├── casLogoutView.html
            │   ├── casMfaRegisterDeviceView.html
            │   ├── casMustChangePassView.html
            │   ├── casPac4jStopWebflow.html
            │   ├── casPasswordUpdateSuccessView.html
            │   ├── casPropagateLogoutView.html
            │   ├── casRadiusLoginView.html
            │   ├── casResetPasswordErrorView.html
            │   ├── casResetPasswordSendInstructionsView.html
            │   ├── casResetPasswordSentInstructionsView.html
            │   ├── casResetPasswordVerifyQuestionsView.html
            │   ├── casRiskAuthenticationBlockedView.html
            │   ├── casServiceErrorView.html
            │   ├── casSurrogateAuthnListView.html
            │   ├── casSwivelLoginView.html
            │   ├── casU2fLoginView.html
            │   ├── casU2fRegistrationView.html
            │   ├── casYubiKeyLoginView.html
            │   ├── casYubiKeyRegistrationView.html
            │   ├── error
            │   │   ├── 401.html
            │   │   ├── 403.html
            │   │   ├── 404.html
            │   │   ├── 405.html
            │   │   └── 423.html
            │   ├── error.html
            │   ├── layout.html
            │   ├── monitoring
            │   │   ├── attrresolution.html
            │   │   ├── layout.html
            │   │   ├── viewAuthenticationEvents.html
            │   │   ├── viewConfig.html
            │   │   ├── viewConfigMetadata.html
            │   │   ├── viewDashboard.html
            │   │   ├── viewLoggingConfig.html
            │   │   ├── viewSsoSessions.html
            │   │   ├── viewStatistics.html
            │   │   └── viewTrustedDevices.html
            │   └── protocol
            │       ├── 2.0
            │       │   ├── casProxyFailureView.html
            │       │   ├── casProxySuccessView.html
            │       │   ├── casServiceValidationFailure.html
            │       │   └── casServiceValidationSuccess.html
            │       ├── 3.0
            │       │   ├── casServiceValidationFailure.html
            │       │   └── casServiceValidationSuccess.html
            │       ├── casAcceptableUsagePolicyView.html
            │       ├── casAccountDisabledView.html
            │       ├── casAccountLockedView.html
            │       ├── casAuthenticationBlockedView.html
            │       ├── casAuthyLoginView.html
            │       ├── casAzureAuthenticatorLoginView.html
            │       ├── casBadHoursView.html
            │       ├── casBadWorkstationView.html
            │       ├── casConfirmLogoutView.html
            │       ├── casConfirmView.html
            │       ├── casConsentLogoutView.html
            │       ├── casConsentReviewView.html
            │       ├── casConsentView.html
            │       ├── casDuoLoginView.html
            │       ├── casExpiredPassView.html
            │       ├── casGenericSuccessView.html
            │       ├── casGoogleAuthenticatorLoginView.html
            │       ├── casGoogleAuthenticatorRegistrationView.html
            │       ├── casGuaDisplayUserGraphicsView.html
            │       ├── casGuaGetUserIdView.html
            │       ├── casInterruptView.html
            │       ├── casLoginMessageView.html
            │       ├── casLoginView.html
            │       ├── casLogoutView.html
            │       ├── casMfaRegisterDeviceView.html
            │       ├── casMustChangePassView.html
            │       ├── casPac4jStopWebflow.html
            │       ├── casPasswordUpdateSuccessView.html
            │       ├── casPostResponseView.html
            │       ├── casPropagateLogoutView.html
            │       ├── casRadiusLoginView.html
            │       ├── casResetPasswordErrorView.html
            │       ├── casResetPasswordSendInstructionsView.html
            │       ├── casResetPasswordSentInstructionsView.html
            │       ├── casResetPasswordVerifyQuestionsView.html
            │       ├── casRiskAuthenticationBlockedView.html
            │       ├── casServiceErrorView.html
            │       ├── casSurrogateAuthnListView.html
            │       ├── casSwivelLoginView.html
            │       ├── casU2fLoginView.html
            │       ├── casU2fRegistrationView.html
            │       ├── casYubiKeyLoginView.html
            │       ├── casYubiKeyRegistrationView.html
            │       ├── error.html
            │       ├── layout.html
            │       ├── oauth
            │       │   └── confirm.html
            │       ├── oidc
            │       │   └── confirm.html
            │       └── openid
            │           ├── casOpenIdAssociationSuccessView.html
            │           ├── casOpenIdServiceFailureView.html
            │           ├── casOpenIdServiceSuccessView.html
            │           └── user.html
            └── fragments
                ├── bottom.html
                ├── cas-resources-list.html
                ├── cookies.html
                ├── defaultauthn.html
                ├── footerButtons.html
                ├── footer.html
                ├── head.html
                ├── insecure.html
                ├── loginform.html
                ├── loginProviders.html
                ├── loginsidebar.html
                ├── logo.html
                ├── modal.html
                ├── pwdupdateform.html
                ├── serviceui.html
                └── top.html

Bold is folder

esig.properties contains :

standard.custom.css.file=/themes/esig/css/cas.css
cas.javascript.file=/themes/esig/js/cas.js


I hope this can help you !!!

Chris Peck

unread,
Dec 8, 2017, 4:43:15 AM12/8/17
to cas-...@apereo.org
I would like to be able to build a vanilla cas.war file and externalize the following:
-messages.properties
-css, js, and images references from my css files for my templates.

Is there a place where I can set these locations in CAS 5.x (5.1 or 5.2), maybe as a -Dblahlocation=/etc/cas/blah ?

--

-sent from my mobile

vallee.romain

unread,
Dec 8, 2017, 5:15:16 AM12/8/17
to CAS Community, crp...@wm.edu
For message .properties:
src
└── main
    └── resources
        ├─
        ├── messages.properties


and css and js :

src
└── main
    └── resources
        ├── static
        │   └── themes
        │       └── esig <-- this is your theme name
        │           ├── css
        │           │   └── cas.css
        │           ├── images
        │           │   ├── apereo-logo.png
        │           │   ├── cas-logo.png
        │           │   └── logo.png
        │           └── js
        │               └── cas.js

Chris Peck

unread,
Dec 8, 2017, 7:08:27 AM12/8/17
to cas-...@apereo.org
Thanks,
I see that, is there a property setting to locate messages.properties in /etc/cas/config and the themes in /etc/cas/themes ? It's a pain to have to re-roll the warfile when I make a mod to it.  Granted, once it's set I probably won't have to make changes to those.

--
- 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+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/e02abe86-127a-44c0-a9bf-f752c19b4f70%40apereo.org.

vallee.romain

unread,
Dec 8, 2017, 7:43:38 AM12/8/17
to CAS Community, crp...@wm.edu
For me, there is no property setting for messages.properties

Jeffrey Ramsay

unread,
Dec 8, 2017, 10:06:18 AM12/8/17
to CAS Community
Thanks.

--
- 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/728e9c6b-495c-44ea-bbee-289a9145803f%40apereo.org.

Reply all
Reply to author
Forward
0 new messages