CAS 7: Default Classes Customization

40 views
Skip to first unread message

Prakash Thapa

unread,
Aug 21, 2025, 9:23:48 AMAug 21
to CAS Community
I am trying to upgrade CAS from 5 to 7. In the previous version of CAS, we have been customizing the Java classes by just adding the class with same name and custom logic in the default package. But for CAS 7, this approach is not working.

I tried the alternative approach of creating a custom class by extending the default class, this approach seems to be working to some extent but the custom class object of CustomUsernamePasswordCredential(which extends UsernamePasswordCredential class) that I passed to authenticateUsernamePasswordInternal() method is not being propagated successfully. This method is overridden and is accepting the custom class object but it is lost in between and the default class object is received at the SuccessfulHandlerMetaDataPopulator class instead of the custom one.

Please suggest the simpler way of classes customization or the factor that I am missing.
Reply all
Reply to author
Forward
0 new messages