[keycloak-user] UserRepresentation error in calling userResource.search(...) apis using keycloak-admin-client 3.4.0
Subhrajyoti Moitra
subhrajyotim at gmail.com
Fri Nov 17 02:23:56 EST 2017
Hello Friends,
I am getting the below exception when I call userResource.search(..) api in
keycloak-admin-client.
I am using wildfly-swarm to secure my rest services. One of the stateless
beans requires user details. So I am using keycloak-admin-client to get
user info from the Keycloak Server (standalone 3.2.1.Final) . I have tried
with admin-client 3.2.1.Final. I get the same error. What am i doing wrong?
I think some deps are messed. But which ones?
UserRepresentation is part of keycloak-core jar. I see the 3.4.0.Final jar
as expected.
Wildfly-swarm- 2017.11.0
keycloak-admin-client-3.4.0.Final
keycloak server- 3.2.1.Final
Please help. I am stuck and not able to proceed. Some pointers on the same
would be very helpful.
2017-11-17 12:43:10,542 [default task-1 ] ERROR stderr
- javax.ws.rs.client.ResponseProcessingException:
javax.ws.rs.ProcessingException:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "access" (class
org.keycloak.representations.idm.UserRepresentation), not marked as
ignorable (24 known properties: "disableableCredentialTypes", "enabled",
"emailVerified", "origin", "self", "applicationRoles", "createdTimestamp",
"clientRoles", "groups", "username", "totp", "id", "email",
"federationLink", "serviceAccountClientId", "lastName", "clientConsents",
"socialLinks", "realmRoles", "attributes", "firstName", "credentials",
"requiredActions", "federatedIdentities"])
2017-11-17 12:43:10,542 [default task-1 ] ERROR stderr
- at [Source: org.apache.http.conn.EofSensorInputStream at 519efa33; line:
1, column: 300] (through reference chain:
java.util.ArrayList[0]->org.keycloak.representations.idm.UserRepresentation["access"])
Thanks a lot,
Subhro.
More information about the keycloak-user
mailing list