diff --git a/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/dto/IdentityRequest.java b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/dto/IdentityRequest.java index 25b5d1f..6474220 100644 --- a/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/dto/IdentityRequest.java +++ b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/dto/IdentityRequest.java @@ -13,4 +13,5 @@ public class IdentityRequest { private String registrationId; private JsonNode identity; + private JsonNode verifiedAttributes; } diff --git a/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java index 2927bbf..d8fb0b0 100644 --- a/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java +++ b/mosip-identity-plugin/src/main/java/io/mosip/signup/plugin/mosipid/service/IdrepoProfileRegistryPluginImpl.java @@ -384,6 +384,13 @@ private IdentityRequest buildIdentityRequest(JsonNode inputJson, boolean isUpdat } IdentityRequest identityRequest = new IdentityRequest(); + + //if verified claims exists then pass it in the request as "verifiedAttributes" + if(inputJson.has("verified_claims")) { + identityRequest.setVerifiedAttributes(inputJson.get("verified_claims")); + ((ObjectNode) inputJson).remove("verified_claims"); + } + identityRequest.setIdentity(inputJson); return identityRequest; }