We are setting up Wildfly 17 cluster using Domain Mode with 3 nodes, where 1 is domain controller and other 2 are host controller and we have AWS ELB in place as well.
Since ELB is redirecting the request alternatively on each of the two hosts,
/api/login => Host1 => login request and it authenticated and stored the details in SecurityContextHolder in Host1 server.
/api/details => Host2 => since it doesn't know about the UserDetails stored in SecurityContext by Host1, this API fails.
So is there any mechanism available to share this SecurityContext over the cluster ?