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



On Mon, Apr 9, 2018, 11:11 AM zeek lee <lweib...@gmail.com> wrote:

> good question! i have the same problem!
>
> 在 2016年9月20日星期二 UTC+8上午4:56:30,Info写道:
>>
>> 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.
>>
> --
> - 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+unsubscr...@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
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/d0de63f4-3150-49b7-b41e-2d438a28900a%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAGXWBpO3wi_KVo8HEB9Kt9CACbU_pJ6ziFaZeO8BeOpA-Fjh0g%40mail.gmail.com.

Reply via email to