Modify OCM client
The OCM client should be modified according to latest changes in the OCM API as follows:
For out-of-band
request the query string must be in the format:
http://3.111.77.38:3007/v1/out-of-band-proof?type=principalMemberCredential,universityCert
For presentationId
request the response Data is now an array - so the response structures should be modified accordingly.
OCM Response example:
{
"statusCode": 200,
"message": "Proof presentation fetch successfully",
"data": {
"state": "done",
"data": [
{
"schemaId": "7KuDTpQh3GJ7Gp6kErpWvM:2:suneettest1307:1.0.11",
"credDefId": "7KuDTpQh3GJ7Gp6kErpWvM:3:CL:373779:suneet1307",
"revRegId": null,
"timestamp": null,
"credentialSubject": {
"expirationDate": "Fri Jul 22 2022 08:10:51 GMT+0000 (Coordinated Universal Time)",
"fName": "test_fname_3",
"gender": "test_gender_3",
"lName": "test_lname_3"
}
},
{
"schemaId": "7KuDTpQh3GJ7Gp6kErpWvM:2:principal_schema_11-07-22-01:11.07.2201",
"credDefId": "7KuDTpQh3GJ7Gp6kErpWvM:3:CL:371897:principal_member-130722",
"revRegId": null,
"timestamp": null,
"credentialSubject": {
"expirationDate": "NA",
"EmpId": "NA",
"issuerDID": "H4KHpBoMBqLJucEYoU6btt",
"email": "anusaya@vomoto.com",
"Claims": "NA",
"EmpFirstName": "NA",
"EmpLastName": "NA",
"FederationName": "NA",
"subjectDID": "BAVZkW5DNG9Sv9CvEwxfpA",
"FederationId": "NA"
}
}
]
}
}