From 25434661dc9933fb0529aead4adf1c07ddb64959 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 22 Jan 2024 12:00:41 +0100 Subject: [PATCH] change PLACEHOLDER in creds for the correct value --- .../credentials/course-credential.json | 55 ++++++++++--------- idhub/templates/credentials/exo.json | 30 ---------- .../credentials/federation-membership.json | 55 ++++++++++--------- .../credentials/financial-vulnerability.json | 42 +++++++------- idhub/templates/credentials/member.json | 32 ----------- idhub/templates/credentials/openarms.json | 33 ----------- idhub/templates/credentials/paremanel.json | 30 ---------- 7 files changed, 79 insertions(+), 198 deletions(-) delete mode 100644 idhub/templates/credentials/exo.json delete mode 100644 idhub/templates/credentials/member.json delete mode 100644 idhub/templates/credentials/openarms.json delete mode 100644 idhub/templates/credentials/paremanel.json diff --git a/idhub/templates/credentials/course-credential.json b/idhub/templates/credentials/course-credential.json index 6d309e9..f3c299b 100644 --- a/idhub/templates/credentials/course-credential.json +++ b/idhub/templates/credentials/course-credential.json @@ -22,19 +22,19 @@ "evidenceAssessment": "https://idhub.pangea.org/context/#evidenceAssessment" } ], - "id": "[[PLACEHOLDER]]", + "id": "{{ vc_id }}", "type": [ "VerifiableCredential", "VerifiableAttestation", "CourseCredential" ], "issuer": { - "id": "[[PLACEHOLDER]]", - "name": "[[PLACEHOLDER]]" + "id": "{{ issuer_did }}", + "name": "{{ organisation }}" }, - "issuanceDate": "[[PLACEHOLDER]]", - "validFrom": "[[PLACEHOLDER]]", - "validUntil": "[[PLACEHOLDER]]", + "issuanceDate": "{{ issuance_date }}", + "validFrom": "{{ issuance_date }}", + "validUntil": "{{ validUntil }}", "name": [ { "value": "NGO Course Credential for participants", @@ -49,26 +49,31 @@ "lang": "es" } ], - "description": "A NGO Course Credential Schema awarded by a NGO federation and their NGO members, as proposed by Lafede.cat", + "description": [ + { + "value": "A NGO Course Credential Schema awarded by a NGO federation and their NGO members, as proposed by Lafede.cat", + "lang": "en" + } + ], "credentialSubject": { - "id": "[[PLACEHOLDER]]", - "firstName": "[[PLACEHOLDER]]", - "lastName": "[[PLACEHOLDER]]", - "personalIdentifier": "[[PLACEHOLDER]]", - "issuedDate": "[[PLACEHOLDER]]", - "modeOfInstruction": "[[PLACEHOLDER]]", - "courseDuration": "[[PLACEHOLDER]]", - "courseDays": "[[PLACEHOLDER]]", - "courseName": "[[PLACEHOLDER]]", - "courseDescription": "[[PLACEHOLDER]]", - "gradingScheme": "[[PLACEHOLDER]]", - "scoreAwarded": "[[PLACEHOLDER]]", - "qualificationAwarded": "[[PLACEHOLDER]]", - "courseLevel": "[[PLACEHOLDER]]", - "courseFramework": "[[PLACEHOLDER]]", - "courseCredits": "[[PLACEHOLDER]]", - "dateOfAssessment": "[[PLACEHOLDER]]", - "evidenceAssessment": "[[PLACEHOLDER]]" + "id": "{{ subject_did }}", + "firstName": "{{ firstName }}", + "lastName": "{{ lastName }}", + "personalIdentifier": "{{ personalIdentifier }}", + "issuedDate": "{{ issuedDate }}", + "modeOfInstruction": "{{ modeOfInstruction }}", + "courseDuration": "{{ courseDuration }}", + "courseDays": "{{ courseDays }}", + "courseName": "{{ courseName }}", + "courseDescription": "{{ courseDescription }}", + "gradingScheme": "{{ gradingScheme }}", + "scoreAwarded": "{{ scoreAwarded }}", + "qualificationAwarded": "{{ qualificationAwarded }}", + "courseLevel": "{{ courseLevel }}", + "courseFramework": "{{ courseFramework }}", + "courseCredits": "{{ courseCredits }}", + "dateOfAssessment": "{{ dateOfAssessment }}", + "evidenceAssessment": "{{ evidenceAssessment }}" }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/course-credential.json", diff --git a/idhub/templates/credentials/exo.json b/idhub/templates/credentials/exo.json deleted file mode 100644 index 1aee10b..0000000 --- a/idhub/templates/credentials/exo.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - { - "name": "https://schema.org/name", - "email": "https://schema.org/email", - "membershipType": "https://schema.org/memberOf", - "individual": "https://schema.org/Person", - "organization": "https://schema.org/Organization", - "Member": "https://schema.org/Member", - "startDate": "https://schema.org/startDate", - "jsonSchema": "https://schema.org/jsonSchema", - "street_address": "https://schema.org/streetAddress", - "connectivity_option_list": "https://schema.org/connectivityOptionList", - "$ref": "https://schema.org/jsonSchemaRef" - } - ], - "id": "{{ vc_id }}", - "type": ["VerifiableCredential", "HomeConnectivitySurveyCredential"], - "issuer": "{{ issuer_did }}", - "issuanceDate": "{{ issuance_date }}", - "credentialSubject": { - "id": "{{ subject_did }}", - "street_address": "{{ street_address }}", - "connectivity_option_list": "{{ connectivity_option_list }}", - "jsonSchema": { - "$ref": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/UNDEF.json" - } - } -} diff --git a/idhub/templates/credentials/federation-membership.json b/idhub/templates/credentials/federation-membership.json index 0660117..a371537 100644 --- a/idhub/templates/credentials/federation-membership.json +++ b/idhub/templates/credentials/federation-membership.json @@ -23,19 +23,19 @@ "certificationDate": "https://idhub.pangea.org/context/#certificationDate" } ], - "id": "[[PLACEHOLDER]]", + "id": "{{ vc_id }}", "type": [ "VerifiableCredential", "VerifiableAttestation", "FederationMembership" ], "issuer": { - "id": "[[PLACEHOLDER]]", - "name": "[[PLACEHOLDER]]" + "id": "{{ issuer_did }}", + "name": "{{ organisation }}" }, - "issuanceDate": "[[PLACEHOLDER]]", - "validFrom": "[[PLACEHOLDER]]", - "validUntil": "[[PLACEHOLDER]]", + "issuanceDate": "{{ issuance_date }}", + "validFrom": "{{ issuance_date }}", + "validUntil": "{{ validUntil }}", "name": [ { "value": "NGO federation membership attestation credential", @@ -56,33 +56,34 @@ "lang": "en" }, { - "value": "Credencial para ONG que son miembros de una federación de ONG" + "value": "Credencial para ONG que son miembros de una federación de ONG", + "lang": "es" }, { "value": "Credencial per a les ONG que són membres d'una federació d'ONG", - "lang": "es" + "lang": "ca_ES" } ], "credentialSubject": { - "id": "[[PLACEHOLDER]]", - "federation": "[[PLACEHOLDER]]", - "legalName": "[[PLACEHOLDER]]", - "shortName": "[[PLACEHOLDER]]", - "registrationIdentifier": "[[PLACEHOLDER]]", - "publicRegistry": "[[PLACEHOLDER]]", - "streetAddress": "[[PLACEHOLDER]]", - "postCode": "[[PLACEHOLDER]]", - "city": "[[PLACEHOLDER]]", - "taxReference": "[[PLACEHOLDER]]", - "membershipType": "[[PLACEHOLDER]]", - "membershipStatus": "[[PLACEHOLDER]]", - "membershipId": "[[PLACEHOLDER]]", - "membershipSince": "[[PLACEHOLDER]]", - "email": "[[PLACEHOLDER]]", - "phone": "[[PLACEHOLDER]]", - "website": "[[PLACEHOLDER]]", - "evidence": "[[PLACEHOLDER]]", - "certificationDate": "[[PLACEHOLDER]]" + "id": "{{ subject_did }}", + "federation": "{{ federation }}", + "legalName": "{{ legalName }}", + "shortName": "{{ shortName }}", + "registrationIdentifier": "{{ registrationIdentifier }}", + "publicRegistry": "{{ publicRegistry }}", + "streetAddress": "{{ streetAddress }}", + "postCode": "{{ postCode }}", + "city": "{{ city }}", + "taxReference": "{{ taxReference }}", + "membershipType": "{{ membershipType }}", + "membershipStatus": "{{ membershipStatus }}", + "membershipId": "{{ membershipId }}", + "membershipSince": "{{ membershipSince }}", + "email": "{{ email }}", + "phone": "{{ phone }}", + "website": "{{ website }}", + "evidence": "{{ evidence }}", + "certificationDate": "{{ certificationDate }}" }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", diff --git a/idhub/templates/credentials/financial-vulnerability.json b/idhub/templates/credentials/financial-vulnerability.json index 35751c3..5b38937 100644 --- a/idhub/templates/credentials/financial-vulnerability.json +++ b/idhub/templates/credentials/financial-vulnerability.json @@ -4,20 +4,20 @@ "https://idhub.pangea.org/credentials/base/v1", "https://idhub.pangea.org/credentials/financial-vulnerability/v1" ], - "id": "[[PLACEHOLDER]]", + "id": "{{ vc_id }}", "type": [ "VerifiableCredential", "VerifiableAttestation", "FinancialVulnerabilityCredential" ], "issuer": { - "id": "[[PLACEHOLDER]]", - "name": "[[PLACEHOLDER]]" + "id": "{{ issuer_did }}", + "name": "{{ organisation }}" }, - "issuanceDate": "[[PLACEHOLDER]]", - "issued": "[[PLACEHOLDER]]", - "validFrom": "[[PLACEHOLDER]]", - "validUntil": "[[PLACEHOLDER]]", + "issuanceDate": "{{ issuance_date }}", + "issued": "{{ issuance_date }}", + "validFrom": "{{ issuance_date }}", + "validUntil": "{{ validUntil }}", "name": [ { "value": "Financial Vulnerability Credential", @@ -47,20 +47,20 @@ } ], "credentialSubject": { - "id": "[[PLACEHOLDER]]", - "firstName": "[[PLACEHOLDER]]", - "lastName": "[[PLACEHOLDER]]", - "email": "[[PLACEHOLDER]]", - "identityDocType": "[[PLACEHOLDER]]", - "identityNumber": "[[PLACEHOLDER]]", - "phoneNumber": "[[PLACEHOLDER]]", - "streetAddress": "[[PLACEHOLDER]]", - "socialWorkerName": "[[PLACEHOLDER]]", - "socialWorkerSurname": "[[PLACEHOLDER]]", - "financialVulnerabilityScore": "[[PLACEHOLDER]]", - "amountCoveredByOtherAids": "[[PLACEHOLDER]]", - "connectivityOptionList": "[[PLACEHOLDER]]", - "assessmentDate": "[[PLACEHOLDER]]" + "id": "{{ subject_did }}", + "firstName": "{{ firstName }}", + "lastName": "{{ lastName }}", + "email": "{{ email }}", + "identityDocType": "{{ identityDocType }}", + "identityNumber": "{{ identityNumber }}", + "phoneNumber": "{{ phoneNumber }}", + "streetAddress": "{{ streetAddress }}", + "socialWorkerName": "{{ socialWorkerName }}", + "socialWorkerSurname": "{{ socialWorkerSurname }}", + "financialVulnerabilityScore": "{{ financialVulnerabilityScore }}", + "amountCoveredByOtherAids": "{{ amountCoveredByOtherAids }}", + "connectivityOptionList": "{{ connectivityOptionList }}", + "assessmentDate": "{{ assessmentDate }}" }, "credentialSchema": { "id": "https://idhub.pangea.org/vc_schemas/financial-vulnerability.json", diff --git a/idhub/templates/credentials/member.json b/idhub/templates/credentials/member.json deleted file mode 100644 index e98bef2..0000000 --- a/idhub/templates/credentials/member.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - { - "name": "https://schema.org/name", - "email": "https://schema.org/email", - "membershipType": "https://schema.org/memberOf", - "individual": "https://schema.org/Person", - "organization": "https://schema.org/Organization", - "Member": "https://schema.org/Member", - "startDate": "https://schema.org/startDate", - "jsonSchema": "https://schema.org/jsonSchema", - "$ref": "https://schema.org/jsonSchemaRef" - } - ], - "type": ["VerifiableCredential", "VerifiableAttestation"], - "id": "{{ vc_id }}", - "issuer": "{{ issuer_did }}", - "issuanceDate": "{{ issuance_date }}", - "credentialSubject": { - "id": "{{ subject_did }}", - "Member": { - "name": "{{ name }}", - "email": "{{ email }}", - "membershipType": "{{ membershipType }}", - "startDate": "{{ startDate }}" - }, - "jsonSchema": { - "$ref": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/member-schema.json" - } - } -} \ No newline at end of file diff --git a/idhub/templates/credentials/openarms.json b/idhub/templates/credentials/openarms.json deleted file mode 100644 index e2ecbc6..0000000 --- a/idhub/templates/credentials/openarms.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - { - "name": "https://schema.org/name", - "email": "https://schema.org/email", - "membershipType": "https://schema.org/memberOf", - "individual": "https://schema.org/Person", - "organization": "https://schema.org/Organization", - "Member": "https://schema.org/Member", - "startDate": "https://schema.org/startDate", - "jsonSchema": "https://schema.org/jsonSchema", - "destination_country": "https://schema.org/destinationCountry", - "offboarding_date": "https://schema.org/offboardingDate", - "$ref": "https://schema.org/jsonSchemaRef" - } - ], - "id": "{{ vc_id }}", - "type": ["VerifiableCredential", "MigrantRescueCredential"], - "issuer": "{{ issuer_did }}", - "issuanceDate": "{{ issuance_date }}", - "credentialSubject": { - "id": "{{ subject_did }}", - "name": "{{ name }}", - "country_of_origin": "{{ country_of_origin }}", - "rescue_date": "{{ rescue_date }}", - "destination_country": "{{ destination_country }}", - "offboarding_date": "{{ offboarding_date }}", - "jsonSchema": { - "$ref": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/UNDEF.json" - } - } -} diff --git a/idhub/templates/credentials/paremanel.json b/idhub/templates/credentials/paremanel.json deleted file mode 100644 index a40396b..0000000 --- a/idhub/templates/credentials/paremanel.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - { - "name": "https://schema.org/name", - "email": "https://schema.org/email", - "membershipType": "https://schema.org/memberOf", - "individual": "https://schema.org/Person", - "organization": "https://schema.org/Organization", - "Member": "https://schema.org/Member", - "startDate": "https://schema.org/startDate", - "jsonSchema": "https://schema.org/jsonSchema", - "street_address": "https://schema.org/streetAddress", - "financial_vulnerability_score": "https://schema.org/financialVulnerabilityScore", - "$ref": "https://schema.org/jsonSchemaRef" - } - ], - "id": "{{ vc_id }}", - "type": ["VerifiableCredential", "FinancialSituationCredential"], - "issuer": "{{ issuer_did }}", - "issuanceDate": "{{ issuance_date }}", - "credentialSubject": { - "id": "{{ subject_did }}", - "street_address": "{{ street_address }}", - "financial_vulnerability_score": "{{ financial_vulnerability_score }}", - "jsonSchema": { - "$ref": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/UNDEF.json" - } - } -}