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

On Wednesday, January 14, 2026 at 8:47:30 AM UTC-6 Prakash Thapa wrote:

> 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:
>
>> 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:* [email protected] <[email protected]> on behalf of Prakash 
>> Thapa <[email protected]>
>> *Sent:* January 13, 2026 03:59
>> *To:* CAS Community <[email protected]>
>> *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 [email protected].
>> To view this discussion visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/b296a09d-cdcd-451a-8ba8-98a10f836a47n%40apereo.org
>>  
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/b296a09d-cdcd-451a-8ba8-98a10f836a47n%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
- 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/43c04484-b68b-4bd5-a792-4976f1d59d73n%40apereo.org.

Reply via email to