Simplest way of customizing CAS Default Classes

37 views
Skip to first unread message

Prakash Thapa

unread,
Jan 13, 2026, 8:45:14 AM (5 days ago) Jan 13
to CAS Community
What could be the most simplest way of customizing the CAS library classes for CAS 7? I tried creating custom classes and registering it's bean. This method doesn't seem to be feasible for all the classes as few classes might not have been registered as Spring beans.


I am struggling a lot with the customization and would appreciate a lot if anyone has tried the simplest approach.

Till CAS 5, we just added classes with same name in same package and the customization was in place.

Ray Bon

unread,
Jan 13, 2026, 12:28:58 PM (5 days ago) Jan 13
to cas-...@apereo.org
Prakash,

The overlay approach should still work.
What are some classes that you are trying to override, but they are not working?

It may be that the upstream classes have been modified or perhaps no longer exist.

Ray

From: cas-...@apereo.org <cas-...@apereo.org> on behalf of Prakash Thapa <thapaprak...@gmail.com>
Sent: January 13, 2026 03:59
To: CAS Community <cas-...@apereo.org>
Subject: [cas-user] Simplest way of customizing CAS Default Classes
 
What could be the most simplest way of customizing the CAS library classes for CAS 7? I tried creating custom classes and registering it's bean. This method doesn't seem to be feasible for all the classes as few classes might not have been registered as Spring beans.


I am struggling a lot with the customization and would appreciate a lot if anyone has tried the simplest approach.

Till CAS 5, we just added classes with same name in same package and the customization was in place.

--
- 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+u...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/b296a09d-cdcd-451a-8ba8-98a10f836a47n%40apereo.org.

Prakash Thapa

unread,
Jan 14, 2026, 9:47:30 AM (4 days ago) Jan 14
to CAS Community, Ray Bon
The exact CAS version is '7.2.4'.

Prakash Thapa

unread,
Jan 14, 2026, 9:47:30 AM (4 days ago) Jan 14
to CAS Community, Ray Bon
Hi Ray,

Some of the classes that I tried customizing are 'TerminateSessionAction', 'DefaultServiceTicketResourceEntityResponseFactory', 'DelegatedClientIdentityProviderConfigurationFactory', 'DelegatedClientIdentityProviderConfiguration' etc.


"It may be that the upstream classes have been modified or perhaps no longer exist."
>> Regarding this, I copied the exact default classes on same package before starting the customization. On keeping the breakpoints, the debugger stops at custom classes, but the actual code execution is from the default class itself (the logs added on custom classes are also not printed).
On Tuesday, January 13, 2026 at 11:13:58 PM UTC+5:45 Ray Bon wrote:

Pablo Vidaurri

unread,
Jan 14, 2026, 3:51:10 PM (3 days ago) Jan 14
to CAS Community, Prakash Thapa, Ray Bon
In CAS 7.x ...

If they are new classes, you can register them via including the class in:
src\main\resources\META-INF\spring\org.springframework.boot.autoconfigure.AutoConfiguration.imports

one class per line per class including package with out any ending delimiter: com.newco.service.MyService

If you are just overwriting an existing CAS class, just drop it into the same package.

-psv

Reply all
Reply to author
Forward
0 new messages