Using the maven dependency keycloak-admin-client, I cannot list realms :
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-admin-client</artifactId>
<version>15.0.0</version>
</dependency>
val realms = keycloak.realms().findAll()
I get this error :
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "oauth2DeviceCodeLifespan"
javax.ws.rs.client.ResponseProcessingException: javax.ws.rs.ProcessingException:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "oauth2DeviceCodeLifespan" (class org.keycloak.representations.idm.RealmRepresentation), not marked as ignorable
(130 known properties: "userFederationMappers", "rememberMe", "duplicateEmailsAllowed", "adminEventsDetailsEnabled", "users", "clientOfflineSessionMaxLifespan", "webAuthnPolicyRequireResidentKey",
On the server side, no log is written.
I’m using Keycloak server 15.0.0 and keycloak-admin-client 15.0.0
Created issue :
https://issues.redhat.com/browse/KEYCLOAK-18943