Sample Java Web Application to test the login

22 views
Skip to first unread message

Steve Cheung

unread,
Nov 6, 2019, 2:37:24 AM11/6/19
to CAS Community
Hi all, 

I have setup and run a overlay cas war 6.2.0 in my local environment with simple configuration. 

The next step I would like to setup a sample web app to do the login via the cas server. May I know where get more sample code from the web and more instruction about it? 

Many thanks.

Regards, 
Steve

Robert Oschwald

unread,
Nov 6, 2019, 2:39:37 AM11/6/19
to cas-...@apereo.org

https://www.baeldung.com/spring-security-cas-sso

Sent while mobile.

Am 06.11.2019 um 08:37 schrieb Steve Cheung <pwch...@gmail.com>:


--
- 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/a04b5d84-294f-4db7-b2da-c5fc3d4d843c%40apereo.org.

Andy Ng

unread,
Nov 6, 2019, 2:47:40 AM11/6/19
to CAS Community
Hi Steve,

What language of sample web app are you talking about, PHP? Java? Others?

As you can see here:
https://apereo.github.io/cas/6.1.x/integration/CAS-Clients.html#official-clients

Here are many ways to connect to CAS, so it is hard to make suggestion if your target is so board :)

Cheers!
- Andy

Steve Cheung

unread,
Nov 6, 2019, 3:12:14 AM11/6/19
to cas-...@apereo.org
Hi Andy,

I suggest to build sample java web app on tomcat to test login function via CAS. i am looking for a typical Java EE security web application.



--
- 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.

Andy Ng

unread,
Nov 6, 2019, 3:33:32 AM11/6/19
to CAS Community
Hi Steve,

> build sample java web app on tomcat
Ah, I see

> a typical Java EE security web application.
I haven't seen any Java EE security web application on the web, so can't recommend any Java EE security web application example to you.

A few suggestions, see if those can help you:
- Follow suggestion and use https://www.baeldung.com/spring-security-cas-sso, haven't use it before
- Use the official Java CAS client here: https://github.com/apereo/java-cas-client, which is a bit hard to manage
- Use an simple example Java CAS client here: https://github.com/cas-projects/cas-sample-java-webapp



Finally if you are feeling adventurous, these few week I am building a project which an fully functional CAS example based on docker:

Which also contains an example Java CAS client, if you are interested to test out new stuff:)


Hopefully these info helps you, see if other have suggestion as well!

Cheers! 
- Andy






Steve Cheung

unread,
Nov 6, 2019, 6:23:44 AM11/6/19
to cas-...@apereo.org
Hi andy, thx

I hv tried the sample java web app . It seems not very details for my poc. 

Btw, many thx for suggestion. Will look into the other links as well. 

Thx, steve

Sent from my iPhone

On 6 Nov 2019, at 16:33, Andy Ng <lon...@gmail.com> wrote:


--
- 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.
Reply all
Reply to author
Forward
0 new messages