CASify application with AngularJS front end and Spring boot back end

55 views
Skip to first unread message

Info

unread,
Sep 19, 2016, 4:56:30 PM9/19/16
to CAS Community
Hi,

I am new to CAS and trying to add CAS authentication to our application that uses AngularJS for the front-end. Data is served to it through RestController running on a spring boot (1.2.6.Release) application backend.  The AngularJS app is running on node at http://localhost:8080 and the spring boot application is running on http:/localhost:8082.  I need the URL to be redirected to secure both ports.

What do I set the server name or service to: http://localhost:8080 or http://localhost:8082?

Thanks.

zeek lee

unread,
Apr 8, 2018, 11:11:43 PM4/8/18
to CAS Community
good question! i have the same problem!

在 2016年9月20日星期二 UTC+8上午4:56:30,Info写道:

M. Reza Ganji

unread,
Apr 8, 2018, 11:16:50 PM4/8/18
to cas-...@apereo.org
We had that issue and solved it using angular guard. We have web services that if users are not logged in respond with anything but HTTP 200
If that happens guard will catch it in routing and forward the user to the CAS login page with service=AngularPageURL



--
- 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/d0de63f4-3150-49b7-b41e-2d438a28900a%40apereo.org.

M. Reza Ganji

unread,
Apr 8, 2018, 11:18:03 PM4/8/18
to cas-...@apereo.org
Also, there is a Node CAS module that you can use. 

On Mon, Apr 9, 2018, 11:11 AM zeek lee <lwei...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages