Cas login page with no service

153 views
Skip to first unread message

thomas

unread,
Mar 29, 2023, 10:15:38 AM3/29/23
to CAS Community
Hi all,

When we login on CAS without specifying a service, CAS displays a page with all released attributes.
Is it possible to hide these detailed attributes ?

Best regards
thomas

Ray Bon

unread,
Mar 29, 2023, 12:17:48 PM3/29/23
to cas-...@apereo.org
thomas,

You can set this property to redirect when no service is provided (I was not able to find this property in the 6.x docs)
cas.view.default-redirect-url

Ray

On Wed, 2023-03-29 at 07:07 -0700, thomas wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

Jeremiah Garmatter

unread,
Mar 29, 2023, 2:23:47 PM3/29/23
to CAS Community
Thomas,

You could also set the cas.successful-login.display-attributes=false within your cas-theme-default.properties file.
You'd need to rebuild the overlay with gradle and re-deploy the app but this option does exactly what you want.

thomas

unread,
Apr 4, 2023, 3:33:22 PM4/4/23
to CAS Community, j-gar...@onu.edu
Hi ,

thanks for your answers.
cas.successful-login.display-attributes is indeed exactly what I need, but it overrides changes we've done on template of src/main/resources folder (we haven't created a special theme).
Is there a way to use this parameter without having to change all our configuration ? I was hoping something like a cas.properties parameter

Vincent Delhommmeau

unread,
Apr 10, 2023, 9:39:08 AM4/10/23
to CAS Community, thomas, j-gar...@onu.edu
Hi Thomas,

I dont know if it answers your question, but you can block login without a service :

cas.sso.allow-missing-service-parameter=false

thomas

unread,
Apr 11, 2023, 4:07:09 AM4/11/23
to CAS Community, vince...@gmail.com, thomas, j-gar...@onu.edu
Hi Vincent,
This is exactly what I was looking for, thanks a lot!

Luis Sarmiento Heredia

unread,
Apr 12, 2023, 12:26:24 AM4/12/23
to cas-...@apereo.org
good morning thomas sorry for the inconvenience could you help me how to run cas war overlay the truth I have followed to the letter the instructions in the official documentation and nothing to do in advance thank you in advance 

--
- 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/72073bcd-2c53-421a-9041-35f9095c5a30n%40apereo.org.

thomas

unread,
Apr 14, 2023, 5:54:13 AM4/14/23
to CAS Community, sarmih...@gmail.com
Hi sarmih,
After that, just run getcas --modules support-ldap,... to download overlay, build (./gradlew clean build) and then copy generared war to your tomcat instance (cp build/libs/cas.war /var/lib/tomcat9/webapps)

regards
thomas
Reply all
Reply to author
Forward
0 new messages