I've recently configured SSO with Keycloak servlet adapter.
The problem is that we have service-to-service communication, which goes with BASIC authentication.
Previously, we were using JAAS authentication, therefore the S2S communication was stateless (no sessions associated).
With the SSO/Keycloak, this is no longer the case. Moreover, each REST request, creates a new Keycloak session.
I tried to find a configuration or an alternative solution without Keycloak customization and coding, but I couldn't.
P.S. Due to backward compatibility, I can't change the REST clients to switch to BEARER or other auth methods.
Anyone having better idea?