[keycloak-user] keycloak java rest client compatibility

David Delbecq david_delbecq at trimble.com
Mon Mar 13 11:17:25 EDT 2017


Hello,

For some operation in our software, we need to perform some REST operations
on keycloak (mainly set some client role in response to some business
logic). For that we use the provided java rest client. However, we noticed
in the past that if the client and server don't run the exact same version,
you start getting exceptions on the client side. It was due to server
replying with additional parameters in the json, and the client throwing
Exception on parsing those unattended additional properties. I think I was
running at that time client 2.3 on a 2.5 server. It seems like the api used
to generate java client has a parameter to be more relax on unexpected
properties, but it has been generated by requesting a strict adherence to
expected reply.

Is it expected behavior that java client crash if server is not at the same
version? That doesn't seem very practical from a production point of view,
if you need to upgrade your keycloak server, you then need to sync with
applications upgrade schedule.


-- 
<http://www.trimble.com/>
David Delbecq
Software engineer, Transport & Logistics
Geldenaaksebaan 329, 1st floor | 3001 Leuven
+32 16 391 121 <+32%2016%20391%20121> Direct
david.delbecq at trimbletl.com
<http://www.trimbletl.com/>


More information about the keycloak-user mailing list