forked from animo/openid4vc-playground
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tom Lanser <[email protected]>
- Loading branch information
Showing
18 changed files
with
207 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
agent/src/verifiers/animo.ts → agent/src/verifiers/bundesregierung.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { AGENT_HOST } from '../constants' | ||
import { certificateOfResidenceSdJwt, certificateOfResidenceSdJwtData } from '../issuers/koln' | ||
import { steuerIdSdJwt, steuerIdSdJwtData } from '../issuers/steuern' | ||
import { healthIdSdJwt, healthIdSdJwtData } from '../issuers/techniker' | ||
import type { PlaygroundVerifierOptions } from '../verifier' | ||
import { pidMdocInputDescriptor, pidSdJwtInputDescriptor, sdJwtInputDescriptor } from './util' | ||
|
||
export const cheapCarsVerifier = { | ||
verifierId: '019368fe-ee82-7990-880c-7f0ceb92b0aa', | ||
clientMetadata: { | ||
logo_uri: `${AGENT_HOST}/assets/verifiers/cheap-cars.webp`, | ||
client_name: 'Cheap Cars', | ||
}, | ||
presentationRequests: [ | ||
{ | ||
id: '019368ff-0ec7-7eec-bdbf-861e512d0924', | ||
name: 'PID and MDL - Secure car reservations (vc+sd-jwt)', | ||
purpose: 'To secure your car reservations and finalize the transaction, we require the following attributes', | ||
input_descriptors: [ | ||
// TODO: Add more fields | ||
pidMdocInputDescriptor({ | ||
fields: [ | ||
'document_number', | ||
'issue_date', | ||
'expiry_date', | ||
'issuing_country', | ||
'issuing_authority', | ||
'driving_priviliges', | ||
], | ||
}), | ||
// TODO: Add more fields | ||
pidSdJwtInputDescriptor({ | ||
fields: ['given_name', 'family_name', 'birth_date', 'address.country', 'nationalities'], | ||
}), | ||
], | ||
}, | ||
], | ||
dcqlRequests: [], | ||
} as const satisfies PlaygroundVerifierOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { AGENT_HOST } from '../constants' | ||
import type { PlaygroundVerifierOptions } from '../verifier' | ||
|
||
export const europeanUnionVerifier = { | ||
verifierId: '01936907-56a3-7007-a61f-44bff8b5d175', | ||
clientMetadata: { | ||
logo_uri: `${AGENT_HOST}/assets/verifiers/eu.png`, | ||
client_name: 'European Union', | ||
}, | ||
presentationRequests: [], | ||
dcqlRequests: [], | ||
} as const satisfies PlaygroundVerifierOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { AGENT_HOST } from '../constants' | ||
import type { PlaygroundVerifierOptions } from '../verifier' | ||
|
||
export const farmatecVerifier = { | ||
verifierId: '01936904-6f3c-7ccd-9e80-63e6d4945d93', | ||
clientMetadata: { | ||
logo_uri: `${AGENT_HOST}/assets/verifiers/farmatec.png`, | ||
client_name: 'Farmatec', | ||
}, | ||
presentationRequests: [], | ||
dcqlRequests: [], | ||
} as const satisfies PlaygroundVerifierOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { AGENT_HOST } from '../constants' | ||
import { certificateOfResidenceSdJwt } from '../issuers/koln' | ||
import { steuerIdSdJwt } from '../issuers/steuern' | ||
import { healthIdSdJwt } from '../issuers/techniker' | ||
import type { PlaygroundVerifierOptions } from '../verifier' | ||
import { pidSdJwtInputDescriptor, sdJwtInputDescriptor } from './util' | ||
|
||
export const openHorizonBankVerifier = { | ||
verifierId: '019368e8-54aa-788e-81c4-e60a59a09d87', | ||
clientMetadata: { | ||
logo_uri: `${AGENT_HOST}/assets/verifiers/openbank.png`, | ||
client_name: 'Open Horizon Bank', | ||
}, | ||
presentationRequests: [ | ||
{ | ||
id: '019368e2-a893-799b-b7a5-cfcaa07b2229', | ||
name: 'PID and MDL - Open an Open Horizon Bank account (vc+sd-jwt)', | ||
purpose: | ||
'To open an Open Horizon Bank account, we need to verify your name, date of birth, country of residence and nationality', | ||
input_descriptors: [ | ||
sdJwtInputDescriptor({ | ||
vcts: [steuerIdSdJwt.vct], | ||
fields: ['tax_number', 'affiliation_country'], | ||
}), | ||
sdJwtInputDescriptor({ | ||
vcts: [certificateOfResidenceSdJwt.vct], | ||
fields: ['resident_address', 'arrival_date'], | ||
}), | ||
sdJwtInputDescriptor({ | ||
vcts: [healthIdSdJwt.vct], | ||
fields: ['health_insurance_id', 'affiliation_country', 'matching_institution_id'], | ||
}), | ||
pidSdJwtInputDescriptor({ | ||
fields: ['given_name', 'family_name', 'birth_date', 'address.country', 'nationalities'], | ||
}), | ||
], | ||
}, | ||
], | ||
dcqlRequests: [], | ||
} as const satisfies PlaygroundVerifierOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { AGENT_HOST } from '../constants' | ||
import type { PlaygroundVerifierOptions } from '../verifier' | ||
|
||
export const pgeuVerifier = { | ||
verifierId: '01936903-8879-733f-8eaf-6f2fa862099c', | ||
clientMetadata: { | ||
logo_uri: `${AGENT_HOST}/assets/verifiers/pgeu.png`, | ||
client_name: 'The Pharmaceutical Group of the European Union', | ||
}, | ||
presentationRequests: [], | ||
dcqlRequests: [], | ||
} as const satisfies PlaygroundVerifierOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { AGENT_HOST } from '../constants' | ||
import { healthIdSdJwt } from '../issuers/techniker' | ||
import type { PlaygroundVerifierOptions } from '../verifier' | ||
import { sdJwtInputDescriptor } from './util' | ||
|
||
export const redcarePharmacyVerifier = { | ||
verifierId: '01936901-2390-722e-b9f1-bf42db4db7ca', | ||
clientMetadata: { | ||
logo_uri: `${AGENT_HOST}/assets/verifiers/redcare.png`, | ||
client_name: 'Redcare Pharmacy', | ||
}, | ||
presentationRequests: [ | ||
{ | ||
id: '01936901-3823-766e-b771-301158d79a60', | ||
name: 'Finalize transaction (vc+sd-jwt)', | ||
purpose: 'To receive your prescription and finalize the transaction, we require the following attributes', | ||
input_descriptors: [ | ||
sdJwtInputDescriptor({ | ||
vcts: [healthIdSdJwt.vct], | ||
fields: ['health_insurance_id', 'affiliation_country'], | ||
}), | ||
], | ||
}, | ||
], | ||
dcqlRequests: [], | ||
} as const satisfies PlaygroundVerifierOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.