diff --git a/pom.xml b/pom.xml index 83e01c015..59accdabc 100644 --- a/pom.xml +++ b/pom.xml @@ -76,6 +76,12 @@ 2.6.0-SNAPSHOT provided + + com.aws.greengrass + component-common + 2.1.1-SNAPSHOT + provided + com.aws.greengrass nucleus diff --git a/src/main/java/com/aws/greengrass/clientdevices/auth/ClientDevicesAuthService.java b/src/main/java/com/aws/greengrass/clientdevices/auth/ClientDevicesAuthService.java index 11ce96ae1..9297ae451 100644 --- a/src/main/java/com/aws/greengrass/clientdevices/auth/ClientDevicesAuthService.java +++ b/src/main/java/com/aws/greengrass/clientdevices/auth/ClientDevicesAuthService.java @@ -5,6 +5,7 @@ package com.aws.greengrass.clientdevices.auth; +import com.amazon.aws.iot.greengrass.component.common.SerializerFactory; import com.aws.greengrass.authorization.AuthorizationHandler; import com.aws.greengrass.authorization.exceptions.AuthorizationException; import com.aws.greengrass.clientdevices.auth.api.ClientDevicesAuthServiceApi; @@ -46,9 +47,7 @@ import com.aws.greengrass.ipc.VerifyClientDeviceIdentityOperationHandler; import com.aws.greengrass.lifecyclemanager.PluginService; import com.aws.greengrass.util.Coerce; -import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.json.JsonMapper; import software.amazon.awssdk.aws.greengrass.GreengrassCoreIPCService; import java.net.URISyntaxException; @@ -71,9 +70,7 @@ @ImplementsService(name = ClientDevicesAuthService.CLIENT_DEVICES_AUTH_SERVICE_NAME) public class ClientDevicesAuthService extends PluginService { public static final String CLIENT_DEVICES_AUTH_SERVICE_NAME = "aws.greengrass.clientdevices.Auth"; - private static final ObjectMapper MAPPER = JsonMapper.builder() - .enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES) - .build(); + private static final ObjectMapper MAPPER = SerializerFactory.getRecipeSerializerJson(); private static final String KV_NODE = "node"; // TODO: Move configuration related constants to appropriate configuration class