Ankit,

There is a REST protocol for cas. All of the login endpoints are available: 
https://apereo.github.io/cas/7.1.x/protocol/REST-Protocol.html

Ray

On Wed, 2025-01-22 at 19:38 -0800, Ankit Kumar wrote:
You don't often get email from [email protected]. Learn why this is 
important<https://aka.ms/LearnAboutSenderIdentification>
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<https://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 [email protected].
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/76321cc33fc8dd587313b719224481b72614a8cd.camel%40uvic.ca.

Reply via email to