Yan Zhou, Are you creating a custom feature?
If so, you may have to include libraries from the main cas project; and others as necessary. If it is a custom ticket feature, you can structure it like the most similar one from the cas project. If not, you can add hazelcast ticket storage as per, https://apereo.github.io/cas/6.4.x/ticketing/Hazelcast-Ticket-Registry.html Ray On Mon, 2022-02-28 at 08:11 -0800, Yan Zhou wrote: Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information. Hi there, Anyone having to deal with token/ticket storage that require serializing CAS objects like Hazelcast? For instance, TGT, ST, OIDC RT/AT all go to Hazelcast ticket registry, which requires to serialize any objects put on IMap. Would I have to package all jars containing these class and place on hazelcast lib folder? These classes are non-trivial, always have a tree of other objects, how do you deal with that? Below is an example of TGT in CAS5, let alone the other objects in CAS5/CAS6, etc. Thanks, Yan public class TicketGrantingTicketImpl extends AbstractTicket implements TicketGrantingTicket { /** * Unique Id for serialization. */ private static final long serialVersionUID = -8608149809180911599L; /** * The authenticated object for which this ticket was generated for. */ @Lob @Column(name = "AUTHENTICATION", nullable = false, length = Integer.MAX_VALUE) private Authentication authentication; -- Ray Bon Programmer Analyst Development Services, University Systems 2507218831 | CLE 019 | r...@uvic.ca<mailto:r...@uvic.ca> I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/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 on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/bca92fffd0200c8ee0dc70f6cd74daa0c9e1294d.camel%40uvic.ca.