[jboss-jira] [JBoss JIRA] (WFLY-11988) Fail to read token fetched from keycloak using keycloak-admin-client

Gunter Zeilinger (Jira) issues at jboss.org
Sun Apr 14 14:57:00 EDT 2019


Gunter Zeilinger created WFLY-11988:
---------------------------------------

             Summary: Fail to read token fetched from keycloak using keycloak-admin-client
                 Key: WFLY-11988
                 URL: https://issues.jboss.org/browse/WFLY-11988
             Project: WildFly
          Issue Type: Bug
          Components: REST
    Affects Versions: 16.0.0.Final, 15.0.0.Final, 14.0.0.Final
         Environment: {noformat}
$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1+13-Ubuntu-3ubuntu3.18.10.1)
OpenJDK 64-Bit Server VM (build 11.0.1+13-Ubuntu-3ubuntu3.18.10.1, mixed mode, sharing)
{noformat}

            Reporter: Gunter Zeilinger
            Assignee: Alessio Soldano


Starting with Wildfly 14.0.0.Final, the properties of [AccessTokenResponse|https://www.keycloak.org/docs-api/5.0/javadocs/org/keycloak/representations/AccessTokenResponse.html] returned by [TokenManager.grantToken|https://jar-download.com/javaDoc/org.keycloak/keycloak-admin-client/5.0.0/org/keycloak/admin/client/token/TokenManager.html#grantToken] are not set.

The failure seems related with a change in RESTEasy from 3.5.1.Final to 3.6.1.Final, concerning the used MessageBodyReader:

Wildfly 13.0.0.Final:
{noformat}
2019-04-14 20:01:12,337 DEBUG [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-1) MessageBodyReader: org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider
{noformat}

vs.

Wilfly 14+.0.0.Final
{noformat}
2019-04-14 19:27:25,294 DEBUG [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-1) MessageBodyReader: org.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider
{noformat}

The failure is independent from the used version of keycloak-admin-client and the version of the Keycloak Server.





--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list