Skip to content

Commit

Permalink
KEYCLOAK-10330 Force Jackson2 provider to be used by Keycloak admin c…
Browse files Browse the repository at this point in the history
…lient, to prevent json-b provider taking over
  • Loading branch information
stianst committed Mar 5, 2020
1 parent b841607 commit fae3337
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.keycloak.admin.client;

import org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider;

public class JacksonProvider extends ResteasyJackson2Provider {
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ private static Client newRestEasyClient(ResteasyJackson2Provider customJacksonPr

if (customJacksonProvider != null) {
clientBuilder.register(customJacksonProvider, 100);
} else {
clientBuilder.register(JacksonProvider.class, 100);
}

return clientBuilder.build();
Expand Down

0 comments on commit fae3337

Please sign in to comment.