Skip to content

Commit

Permalink
fix on schema and consent page of ehic
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmanos committed Jul 4, 2024
1 parent cffc82f commit 4f9eaf1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"personalIdentifier": "PERSONAL_IDENTIFIER"
},
"claims": {
"firstName": "FIRST_NAME",
"familyName": "FAMILY_NAME",
"birthdate": "BIRTH_DATE",
"personalIdentifier": "PERSONAL_IDENTIFIER",
"socialSecurityIdentification": {
"ssn": "SSN_ID"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"email": "EMAIL"
},
"claims": {
"firstName": "FIRST_NAME",
"familyName": "FAMILY_NAME",
"birthdate": "BIRTH_DATE",
"personalIdentifier": "PERSONAL_IDENTIFIER",
"socialSecurityIdentification": {
"ssn": "SSN_ID"
Expand Down

0 comments on commit 4f9eaf1

Please sign in to comment.