Skip to content

Commit

Permalink
Merge pull request mosip#14 from ase-101/develop
Browse files Browse the repository at this point in the history
ES-880 Support to update verified claims on profile update
  • Loading branch information
ckm007 authored Jul 19, 2024
2 parents cd4c475 + 2eef9f3 commit 06a24ed
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
Expand Up @@ -13,4 +13,5 @@ public class IdentityRequest {

private String registrationId;
private JsonNode identity;
private JsonNode verifiedAttributes;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 06a24ed

Please sign in to comment.