Skip to content

Commit

Permalink
Fix compilation error in spring quickstart
Browse files Browse the repository at this point in the history
closes #653

Signed-off-by: mposolda <[email protected]>
  • Loading branch information
mposolda committed Jan 28, 2025
1 parent 861d77a commit 9a2a6aa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.keycloak.adapters.authorization.spi.ConfigurationResolver;
import org.keycloak.adapters.authorization.spi.HttpRequest;
import org.keycloak.representations.adapters.config.PolicyEnforcerConfig;
import org.keycloak.util.SystemPropertiesJsonParserFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -64,7 +63,7 @@ private ServletPolicyEnforcerFilter createPolicyEnforcerFilter() {
PolicyEnforcerConfig config;

try {
ObjectMapper mapper = new ObjectMapper(new SystemPropertiesJsonParserFactory());
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT);
config = mapper.readValue(getClass().getResourceAsStream("/policy-enforcer.json"), PolicyEnforcerConfig.class);
} catch (IOException e) {
Expand Down

0 comments on commit 9a2a6aa

Please sign in to comment.