Skip to content

Commit

Permalink
mdoc image
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Nov 2, 2024
1 parent 279abe4 commit c98e4d3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
3 changes: 1 addition & 2 deletions agent/src/issuers/infrastruktur.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ const mobileDriversLicensePayload = {
family_name: 'Mustermann',
birth_date: new DateOnly('1964-08-12'),
document_number: 'Z021AB37X13',
// FIXME: portrait currently broken for mdoc
// portrait: erikaPortrait,
portrait: new Uint8Array(erikaPortrait),
un_distinguishing_sign: 'D',
issuing_authority: 'Bundesrepublik Deutschland',
issue_date: new DateOnly(new Date(serverStartupTimeInMilliseconds - tenDaysInMilliseconds).toISOString()),
Expand Down
2 changes: 1 addition & 1 deletion agent/src/verifiers/animo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const animoVerifier = {
purpose: 'We need to verify your city',
input_descriptors: [
pidMdocInputDescriptor({
fields: ['birth_place', 'resident_city'],
fields: ['birth_place', 'resident_city', 'birth_date'],
}),
],
},
Expand Down
19 changes: 17 additions & 2 deletions agent/src/verifiers/sixt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ export const sixtVerifier = {
input_descriptors: [
sdJwtInputDescriptor({
vcts: [mobileDriversLicenseSdJwt.vct],
fields: ['document_number', 'portrait', 'issue_date', 'expiry_date', 'issuing_country', 'issuing_authority'],
fields: [
'document_number',
'portrait',
'issue_date',
'expiry_date',
'issuing_country',
'issuing_authority',
'driving_priviliges',
],
}),
pidSdJwtInputDescriptor({
fields: ['given_name', 'family_name', 'birthdate'],
Expand All @@ -26,7 +34,14 @@ export const sixtVerifier = {
mdocInputDescriptor({
doctype: mobileDriversLicenseMdoc.doctype,
namespace: mobileDriversLicenseMdoc.doctype,
fields: ['document_number', 'issue_date', 'expiry_date', 'issuing_country', 'issuing_authority'],
fields: [
'document_number',
'issue_date',
'expiry_date',
'issuing_country',
'issuing_authority',
'driving_priviliges',
],
}),
pidSdJwtInputDescriptor({
fields: ['given_name', 'family_name', 'birthdate'],
Expand Down

0 comments on commit c98e4d3

Please sign in to comment.