Hi,
I am working on an application with Spring Boot as a service provider and 
Angular as a consumer. Could someone guide me in configuring with security 
and allowing access to APIs from the angular app? I already tried but can't 
get data from the backend app using the angular HTTP client. 
I want to know how to configure angular to be able to consume spring boot 
APIs that are protected with CAS. 

- CAS 6.6. 
- angular 18.
Best regards

Le dimanche 11 avril 2021 à 10:05:16 UTC, Jérôme Rautureau a écrit :

> Hello,
>
> You have to rewrite the out-of-the-box CAS integration from Liferay. 
> Because it does not support "completely" the Proxy Ticket Authentication 
> mechanism. 
>
> Plus we are in a clustered environment (CAS and Liferay) so it's more 
> complicated to get it work...
>
> Maybe I could open a gitbub repo in order to push the code.
>
> we used the ext mechanism of Liferay (6.2 version) and changed the 
> outdated cas-client version of the WEB-INF lib directory. 
>
> In a portlet app, we have a getProxyTicketFor(String service) method 
> (witch comes along the  AssertionHolder  : 
> https://github.com/apereo/java-cas-client/blob/master/cas-client-core/src/main/java/org/jasig/cas/client/util/AssertionHolder.java)
>  
> that we can push to the spring boot app service (kakawait cas spring 
> security integration). 
>
> In production, we have 2 kind of tickets repository, jpa and mongodb, i 
> strongly recommend you to use mongodb over jpa.
>
> i will prepare a repo to push the ext-impl cas-filter for Liferay.
>
>
>
> Le dim. 11 avr. 2021 à 00:30, Lakshmi <luckyg...@gmail.com> a écrit :
>
>> hello Rautureau,
>>  I am new to this subject, and can you guide me on how you implemented 
>> proxy authentication because we are also using the Liferay portal, for 
>> short I am using this, could please provide more details on that. 
>>
>> We are using proxy authentication with a Liferay J2ee portal and it's 
>> working but it is a bit complicated to maintain.
>>
>> On Saturday, April 10, 2021 at 1:54:20 AM UTC-5 jrautureau wrote:
>>
>>> Hello 
>>>
>>> I have the same requirements here with  some vuejs spa applications and 
>>> spring boot 2.3 hateOAS APIs.
>>>
>>> We are using proxy authentication with a liferay J2ee portal and it's 
>>> working but it is a bit complicated to maintain.
>>>
>>> We recently move to jwt tickets and sharing the signin key between CAS 
>>> and sprinboot app. With a bit of session storage et some configuration 
>>> around CORs and our XHR client AXIOS it's working fluently now.
>>>
>>> Good luck.
>>>
>>> Le ven. 9 avr. 2021 à 23:58, Lakshmi <luckyg...@gmail.com> a écrit :
>>>
>>>> Hello Ray, 
>>>>
>>>> Thanks for your response, 
>>>> Regarding your question, 
>>>>
>>>> nope, it not supporting My application it was,  we hook links in this 
>>>> portal. 
>>>>
>>>>
>>>> On Friday, April 9, 2021 at 4:44:22 PM UTC-5 Ray Bon wrote:
>>>>
>>>>> Lakshmi,
>>>>>
>>>>> What role is the portal playing in supporting your application?
>>>>>
>>>>> If the user is logging in to the portal, the portal can proxy to the 
>>>>> spring boot application, 
>>>>> https://apereo.github.io/cas/6.3.x/installation/Configuring-Proxy-Authentication.html
>>>>> .
>>>>>
>>>>> There is also a REST interface to cas, 
>>>>> https://apereo.github.io/cas/6.3.x/protocol/REST-Protocol.html
>>>>>
>>>>> Ray
>>>>>
>>>>> On Fri, 2021-04-09 at 14:26 -0700, Lakshmi wrote:
>>>>>
>>>>> Notice: This message was sent from outside the University of Victoria 
>>>>> email system. Please be cautious with links and sensitive information. 
>>>>>
>>>>>
>>>>> Hello All,  
>>>>> I am new to CAS, my client using CAS as global authentication. I 
>>>>> developed and Standalone application(front end angular +backend 
>>>>> application 
>>>>> spring boot) and I want to integrate it into one of my portals.
>>>>> now my requirement is when the user coming to my application how we 
>>>>> can get user details(session or tickets ) from cas server to my angular 
>>>>> application. and that how can I validate across my spring boot 
>>>>> application. 
>>>>> I am a bit stuck at this point. please guide me on this. 
>>>>>
>>>>> -- 
>>>>>
>>>>> Ray Bon
>>>>> Programmer Analyst
>>>>> Development Services, University Systems
>>>>> 2507218831 <(250)%20721-8831> | CLE 019 | rb...@uvic.ca
>>>>>
>>>>> I respectfully acknowledge that my place of work is located within the 
>>>>> ancestral, traditional and unceded territory of the Songhees, Esquimalt 
>>>>> and 
>>>>> WSÁNEĆ Nations.
>>>>>
>>>> -- 
>>>> - 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/4e6ff61f-842b-4a54-acef-5c407dc6feb3n%40apereo.org
>>>>  
>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/4e6ff61f-842b-4a54-acef-5c407dc6feb3n%40apereo.org?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>
> -- 
> Jérôme Rautureau
>

-- 
- Website: https://apereo.github.io/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 visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/b2060fe7-9334-473d-ab66-2c6b975aba8bn%40apereo.org.

Reply via email to