[keycloak-user] keycloak admin-client
Marek Posolda
mposolda at redhat.com
Tue Apr 21 11:58:58 EDT 2015
Is it an option for you to switch to jackson1 provider? It should be
possible by adding the file WEB-INF/jboss-deployment-structure.xml into
your WAR with the content like this:
https://github.com/keycloak/keycloak/blob/master/examples/admin-client/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
Marek
On 21.4.2015 17:13, Benjamin Hansmann [alphaApps] wrote:
> When using the keycloak admin-client library in my servlet, it seems to
> fail unmarshalling the JSON authorization response. I think that
> admin-client/keycloak-core relies on resteasy-jackskon-provider where my
> servlet uses resteasy-jackson2-provider. Maybe this is the root of the
> cause. Any ideas?
>
> 17:00:50,910 ERROR [io.undertow.request] (default task-4) UT005023:
> Exception handling request to /services/users:
> org.jboss.resteasy.spi.UnhandledException:
> javax.ws.rs.client.ResponseProcessingException:
> javax.ws.rs.ProcessingException:
> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
> Unrecognized field "access_token" (class
> org.keycloak.representations.AccessTokenResponse), not marked as
> ignorable (9 known properties: "notBeforePolicy", "otherClaims",
> "tokenType", "token", "expiresIn", "sessionState", "refreshExpiresIn",
> "idToken", "refreshToken"])
> at [Source: org.apache.http.conn.EofSensorInputStream at 31df042a; line:
> 1, column: 18] (through reference chain:
> org.keycloak.representations.AccessTokenResponse["access_token"])
>
More information about the keycloak-user
mailing list