Skip to content

Commit

Permalink
Merge pull request #34 from animo/bugfix/some-requests
Browse files Browse the repository at this point in the history
fix: Some requests
  • Loading branch information
Tommylans authored Nov 26, 2024
2 parents e8cc22b + 13cbec7 commit ca099a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion agent/src/issuers/techniker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const healthIdDisplay = {
const healthIdPayload = {
health_insurance_id: 'A123456780',
affiliation_country: 'DE',
'matching_institution-id': '101575519',
matching_institution_id: '101575519',
matching_registered_family_name: 'Mustermann',
matching_registered_given_name: 'Erika',
matching_resident_address: 'Heidestrasse 17, 51147 koln',
Expand Down
12 changes: 8 additions & 4 deletions agent/src/verifiers/cheapCars.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AGENT_HOST } from '../constants'
import { mobileDriversLicenseSdJwt } from '../issuers/infrastruktur'
import type { PlaygroundVerifierOptions } from '../verifier'
import { pidMdocInputDescriptor, pidSdJwtInputDescriptor, sdJwtInputDescriptor } from './util'
import { pidSdJwtInputDescriptor, sdJwtInputDescriptor } from './util'

export const cheapCarsVerifier = {
verifierId: '019368fe-ee82-7990-880c-7f0ceb92b0aa',
Expand All @@ -17,19 +18,22 @@ export const cheapCarsVerifier = {
purpose: 'To secure your car reservations and finalize the transaction, we require the following attributes',
input_descriptors: [
// TODO: Add more fields
pidMdocInputDescriptor({
sdJwtInputDescriptor({
vcts: [mobileDriversLicenseSdJwt.vct],
fields: [
'document_number',
'portrait',
'issue_date',
'expiry_date',
'issuing_country',
'issuing_authority',
'driving_priviliges',
// Sphereon library can't parse our maps
// 'driving_priviliges',
],
}),
// TODO: Add more fields
pidSdJwtInputDescriptor({
fields: ['given_name', 'family_name', 'birth_date', 'address.country', 'nationalities'],
fields: ['given_name', 'family_name', 'birthdate', 'address.country', 'nationalities'],
}),
],
},
Expand Down
2 changes: 1 addition & 1 deletion agent/src/verifiers/openHorizonBank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const openHorizonBankVerifier = {
fields: ['health_insurance_id', 'affiliation_country', 'matching_institution_id'],
}),
pidSdJwtInputDescriptor({
fields: ['given_name', 'family_name', 'birth_date', 'address.country', 'nationalities'],
fields: ['given_name', 'family_name', 'birthdate', 'address.country', 'nationalities'],
}),
],
},
Expand Down
6 changes: 4 additions & 2 deletions agent/src/verifiers/turboKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const turboKeysVerifier = {
'expiry_date',
'issuing_country',
'issuing_authority',
'driving_priviliges',
// Sphereon library can't parse our maps
// 'driving_priviliges',
],
}),
pidSdJwtInputDescriptor({
Expand Down Expand Up @@ -81,7 +82,8 @@ export const turboKeysVerifier = {
'expiry_date',
'issuing_country',
'issuing_authority',
'driving_priviliges',
// Sphereon library can't parse our maps
// 'driving_priviliges',
],
}),
pidSdJwtDcqlCredential({
Expand Down

0 comments on commit ca099a8

Please sign in to comment.