Hi Ankit,
Happy to hear that you solved it.
I want your help with how to configure Angular to call CAS services that 
are protected by the CAS server. I am getting trouble with angular because 
it receives the cas login page as an API response.

How do you handle redirection to the login in angular.
Thank you
 

Le jeudi 23 janvier 2025 à 11:23:55 UTC+1, Ankit Kumar a écrit :

> Thanks Ray, for your help and pointers.
>
> So essentially our cas server serves as backend app and frontend is an 
> angular app and the customizations we did for cas 3.x involved lot of 
> endpoints around impersonation, saml and other attributes. My understanding 
> could be wrong but there seem to be only limited number of endpoints that 
> CAS exposes by default as rest endpoints.
>
> Looking to learn more together. Appreciate the help again
>
> On Monday, January 20, 2025 at 10:58:01 PM UTC-5 Ray Bon wrote:
>
>> Ankit,
>>
>> A lot has changed since the  dark ages of cas 3.x
>> Perhaps what you needed in 3.x is no longer required, or perhaps has been 
>> implemented.
>> If you need to create a custom authentication handler, see 
>> https://apereo.github.io/cas/7.1.x/authentication/Configuring-Custom-Authentication.html
>> For additional resources see https://fawnoos.com/blog/
>>
>> I do not understand why you need to exclude those cas endpoints from 
>> security. 
>>
>> See cas swagger integration, 
>> https://apereo.github.io/cas/7.1.x/integration/Swagger-Integration.html
>>
>> Ray
>>
>> On Mon, 2025-01-20 at 09:53 -0800, 'Ankit Kumar' via CAS Community wrote:
>>
>> I was able to add bean in CasOverlayOverrideConfiguration of Cas overlay 
>> project and i am able to see in localhost:8443/cas/swagger-ui/index.html my 
>> new controller endpoint.  Now I have been trying to look for way to update 
>> CasWebSecurityConfigurerAdapter so that i can add my endpoint for 
>> CasWebSecurityConfigurerAdapter : Configuring protocol endpoints 
>> [[/login**, /login/**, /logout**, /logout/**, /validate**, ... to 
>> exclude/ignore from http security
>>
>> My main goal is to create new endpoint and then create service class 
>> which would extend 
>>
>> AbstractUsernamePasswordAuthenticationHandler and then override 
>> authenticateUsernamePasswordInternal.
>>
>> We currently do that for cas 3.x version and as part of upgrading to 
>> 7.1.3 we are essentially rewriting the app.
>>
>> I have been stuck on this problem for atleast a week and would appreciate 
>> some help.
>>
>> Thanks
>>
>>
>>

-- 
- 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/c4cf4e32-7d6e-4353-9eb3-e6b2ef9db5c3n%40apereo.org.

Reply via email to