Skip to content

Commit 1516dc1

Browse files
committed
Add intent_to_retain to mso_mdoc claims in DCQL queries
1 parent dd5fe2b commit 1516dc1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const MDL_MSO_MDOC: MsoMdocAttestation = {
1616
doctype: 'org.iso.18013.5.1.mDL',
1717
namespace: 'org.iso.18013.5.1',
1818
attributePath: (attribute: DataElement) => { return msoMdocAttributePath(attribute, 'org.iso.18013.5.1') },
19-
claimPath: (attribute: DataElement) => { return { namespace: 'org.iso.18013.5.1', claim_name: attribute.identifier } }
19+
claimPath: (attribute: DataElement) => { return { namespace: 'org.iso.18013.5.1', claim_name: attribute.identifier, intent_to_retain: false } }
2020
}
2121

2222
/*---- PID ATTESTATION INSTANCES PER FORMAT ----*/
@@ -26,7 +26,7 @@ export const PID_MSO_MDOC: MsoMdocAttestation = {
2626
doctype: 'eu.europa.ec.eudi.pid.1',
2727
namespace: 'eu.europa.ec.eudi.pid.1',
2828
attributePath: (attribute: DataElement) => { return msoMdocAttributePath(attribute, 'eu.europa.ec.eudi.pid.1') },
29-
claimPath: (attribute: DataElement) => { return { namespace: 'eu.europa.ec.eudi.pid.1', claim_name: attribute.identifier } }
29+
claimPath: (attribute: DataElement) => { return { namespace: 'eu.europa.ec.eudi.pid.1', claim_name: attribute.identifier, intent_to_retain: false } }
3030
}
3131
export const PID_SD_JWT_VC: SdJwtVcAttestation = {
3232
format: AttestationFormat.SD_JWT_VC,
@@ -43,7 +43,7 @@ export const AGE_OVER_18_MSO_MDOC: MsoMdocAttestation = {
4343
doctype: 'eu.europa.ec.eudi.pseudonym.age_over_18.1',
4444
namespace: 'eu.europa.ec.eudi.pseudonym.age_over_18.1',
4545
attributePath: (attribute: DataElement) => { return msoMdocAttributePath(attribute, 'eu.europa.ec.eudi.pseudonym.age_over_18.1') },
46-
claimPath: (attribute: DataElement) => { return { namespace: 'eu.europa.ec.eudi.pseudonym.age_over_18.1', claim_name: attribute.identifier } }
46+
claimPath: (attribute: DataElement) => { return { namespace: 'eu.europa.ec.eudi.pseudonym.age_over_18.1', claim_name: attribute.identifier, intent_to_retain: false } }
4747
}
4848

4949
/*---- PHOTO ID ATTESTATION INSTANCES PER FORMAT ----*/
@@ -53,7 +53,7 @@ export const PHOTO_ID_MSO_MDOC: MsoMdocAttestation = {
5353
doctype: 'org.iso.23220.2.photoid.1',
5454
namespace: 'org.iso.23220.photoid.1',
5555
attributePath: (attribute: DataElement) => { return msoMdocAttributePath(attribute, 'org.iso.23220.photoid.1') },
56-
claimPath: (attribute: DataElement) => { return { namespace: 'org.iso.23220.photoid.1', claim_name: attribute.identifier } }
56+
claimPath: (attribute: DataElement) => { return { namespace: 'org.iso.23220.photoid.1', claim_name: attribute.identifier, intent_to_retain: false } }
5757
}
5858

5959
function msoMdocAttributePath(attribute: DataElement, namespace: string): string {

src/app/core/models/dcql/DCQL.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export type JsonClaimQuery = {
2929
export type MsoMdocClaimQueryExtension = {
3030
namespace: string;
3131
claim_name: string;
32+
intent_to_retain: boolean;
3233
};
3334

3435
export type ClaimsQuery = BaseClaimQuery &

0 commit comments

Comments
 (0)