From 4f9eaf195c7b00fc2e28f08a152fb7943baf7eb6 Mon Sep 17 00:00:00 2001 From: kkmanos Date: Thu, 4 Jul 2024 15:15:51 +0300 Subject: [PATCH] fix on schema and consent page of ehic --- .../ehic-issuer/datasets/dataset_schema.json | 3 --- .../EHICSupportedCredentialSdJwt.ts | 13 +++++++------ .../pda1-issuer/datasets/dataset_schema.json | 3 --- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/wallet-enterprise-configurations/ehic-issuer/datasets/dataset_schema.json b/wallet-enterprise-configurations/ehic-issuer/datasets/dataset_schema.json index ca7d482..1175f5a 100644 --- a/wallet-enterprise-configurations/ehic-issuer/datasets/dataset_schema.json +++ b/wallet-enterprise-configurations/ehic-issuer/datasets/dataset_schema.json @@ -8,9 +8,6 @@ "personalIdentifier": "PERSONAL_IDENTIFIER" }, "claims": { - "firstName": "FIRST_NAME", - "familyName": "FAMILY_NAME", - "birthdate": "BIRTH_DATE", "personalIdentifier": "PERSONAL_IDENTIFIER", "socialSecurityIdentification": { "ssn": "SSN_ID" diff --git a/wallet-enterprise-configurations/ehic-issuer/src/configuration/SupportedCredentialsConfiguration/EHICSupportedCredentialSdJwt.ts b/wallet-enterprise-configurations/ehic-issuer/src/configuration/SupportedCredentialsConfiguration/EHICSupportedCredentialSdJwt.ts index 3cc33c9..546b433 100644 --- a/wallet-enterprise-configurations/ehic-issuer/src/configuration/SupportedCredentialsConfiguration/EHICSupportedCredentialSdJwt.ts +++ b/wallet-enterprise-configurations/ehic-issuer/src/configuration/SupportedCredentialsConfiguration/EHICSupportedCredentialSdJwt.ts @@ -47,11 +47,12 @@ export class EHICSupportedCredentialSdJwt implements SupportedCredentialProtocol const credentialViews: CredentialView[] = ehics .map((ehic: any) => { const rows: CategorizedRawCredentialViewRow[] = [ - { name: "Family Name", value: ehic.claims.familyName }, - { name: "First Name", value: ehic.claims.firstName }, + // { name: "Family Name", value: ehic.claims.familyName }, + // { name: "First Name", value: ehic.claims.firstName }, { name: "SSN", value: ehic.claims.socialSecurityIdentification.ssn }, - { name: "Date of Birth", value: ehic.claims.birthdate }, + // { name: "Date of Birth", value: ehic.claims.birthdate }, { name: "Expiration Date", value: ehic.claims.validityPeriod.endingDate }, + { name: "Document Id", value: ehic.claims.documentId }, ]; const rowsObject: CategorizedRawCredentialView = { rows }; @@ -97,9 +98,9 @@ export class EHICSupportedCredentialSdJwt implements SupportedCredentialProtocol const disclosureFrame = { vc: { credentialSubject: { - familyName: true, - firstName: true, - birthdate: true, + // familyName: true, + // firstName: true, + // birthdate: true, personalIdentifier: true, socialSecurityIdentification: { ssn: true diff --git a/wallet-enterprise-configurations/pda1-issuer/datasets/dataset_schema.json b/wallet-enterprise-configurations/pda1-issuer/datasets/dataset_schema.json index df456e2..7dfead9 100644 --- a/wallet-enterprise-configurations/pda1-issuer/datasets/dataset_schema.json +++ b/wallet-enterprise-configurations/pda1-issuer/datasets/dataset_schema.json @@ -9,9 +9,6 @@ "email": "EMAIL" }, "claims": { - "firstName": "FIRST_NAME", - "familyName": "FAMILY_NAME", - "birthdate": "BIRTH_DATE", "personalIdentifier": "PERSONAL_IDENTIFIER", "socialSecurityIdentification": { "ssn": "SSN_ID"