Skip to content
Snippets Groups Projects
Commit 129a65a3 authored by Martin's avatar Martin
Browse files

OZG-7922 remove organizations field

parent 1fced09f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import org.keycloak.representations.idm.RealmRepresentation;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(value = "organizationsEnabled", ignoreUnknown = true)
@JsonIgnoreProperties(value = { "organizationsEnabled", "organizations" }, ignoreUnknown = true)
public class CustomRealmRepresentation extends RealmRepresentation {
}
......@@ -113,6 +113,7 @@ class KeycloakRealmRemoteService {
ObjectMapper mapper = new ObjectMapper();
ObjectNode node = mapper.valueToTree(rr);
node.remove("organizationsEnabled");
node.remove("organizations");
CustomRealmRepresentation filtered = mapper.treeToValue(node, CustomRealmRepresentation.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment