Skip to content

Commit 91bbc63

Browse files
authored
Update EHIC and PDA1 for draft 24 (#158)
1 parent 7e3c358 commit 91bbc63

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
APP_NAME=Verifier
22
DOMAIN_NAME=http://localhost:8080
3-
OPENID4VP_DRAFT=23
3+
OPENID4VP_DRAFT=24

src/app/core/constants/attestations-per-format.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ export const EHIC_MSO_MDOC: MsoMdocAttestation = {
6464
doctype: 'eu.europa.ec.eudi.ehic.1',
6565
namespace: 'eu.europa.ec.eudi.ehic.1',
6666
attributePath: (attribute: DataElement) => { return msoMdocAttributePath(attribute, 'eu.europa.ec.eudi.ehic.1') },
67-
claimPath: (attribute: DataElement) => { return { namespace: 'eu.europa.ec.eudi.ehic.1', claim_name: attribute.identifier } }
67+
claimQuery: (attribute: DataElement) => { return msoMdocClaimQuery('eu.europa.ec.eudi.ehic.1', attribute.identifier) }
6868
}
6969
export const EHIC_SD_JWT_VC: SdJwtVcAttestation = {
7070
format: AttestationFormat.SD_JWT_VC,
7171
attestationDef: EHIC_ATTESTATION,
7272
vct: 'urn:eu.europa.ec.eudi:ehic:1',
7373
attributePath: (attribute: DataElement) => { return `$.${sdJwtVcAttributePath(attribute, AttestationType.EHIC)}` },
74-
claimPath: (attribute: DataElement) => { return { path: sdJwtVcAttributePath(attribute, AttestationType.EHIC).split('.') } }
74+
claimQuery: (attribute: DataElement) => { return { path: sdJwtVcAttributePath(attribute, AttestationType.EHIC).split('.') } }
7575
}
7676

7777
/*---- PDA1 INSTANCES PER FORMAT ----*/
@@ -81,14 +81,14 @@ export const PDA1_MSO_MDOC: MsoMdocAttestation = {
8181
doctype: 'eu.europa.ec.eudi.pda1.1',
8282
namespace: 'eu.europa.ec.eudi.pda1.1',
8383
attributePath: (attribute: DataElement) => { return msoMdocAttributePath(attribute, 'eu.europa.ec.eudi.pda1.1') },
84-
claimPath: (attribute: DataElement) => { return { namespace: 'eu.europa.ec.eudi.pda1.1', claim_name: attribute.identifier } }
84+
claimQuery: (attribute: DataElement) => { return msoMdocClaimQuery('eu.europa.ec.eudi.pda1.1', attribute.identifier) }
8585
}
8686
export const PDA1_SD_JWT_VC: SdJwtVcAttestation = {
8787
format: AttestationFormat.SD_JWT_VC,
8888
attestationDef: PDA1_ATTESTATION,
8989
vct: 'urn:eu.europa.ec.eudi:pda1:1',
9090
attributePath: (attribute: DataElement) => { return `$.${sdJwtVcAttributePath(attribute, AttestationType.PDA1)}` },
91-
claimPath: (attribute: DataElement) => { return { path: sdJwtVcAttributePath(attribute, AttestationType.PDA1).split('.') } }
91+
claimQuery: (attribute: DataElement) => { return { path: sdJwtVcAttributePath(attribute, AttestationType.PDA1).split('.') } }
9292
}
9393

9494
function msoMdocAttributePath(attribute: DataElement, namespace: string): string {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const environment = {
22
apiUrl: 'http://localhost:4200',
33
appName: 'Verifier',
4-
openid4vpDraft: '23',
4+
openid4vpDraft: '24',
55
};

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const environment = {
22
apiUrl: 'http://localhost:8080',
33
appName: 'Verifier',
4-
openid4vpDraft: '23',
4+
openid4vpDraft: '24',
55
};

0 commit comments

Comments
 (0)