From 2f1350a40d95db6706073dcd9d2d90b8b596b76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Maas?= Date: Thu, 6 Jun 2024 10:44:07 +0200 Subject: [PATCH 1/3] feat: Implemented credential branding on Konkuk demo --- .../demos/konkuk/oid4vci_metadata/ensure-dir | 0 .../demos/konkuk/oid4vci_metadata/konkuk.json | 243 ++++++++++++++++++ .../templates/knb_kvk/KvkInschrijving.hbs | 14 - .../templates/konkuk/EmployeeCredential.hbs | 14 + .../templates/konkuk/StudentCredential.hbs | 16 ++ .../sphereonGuest/GuestCredential.hbs | 16 -- .../konkuk/{logo.svg => konkuk_logo.svg} | 0 .../src/configs/konkuk.json | 46 ++++ 8 files changed, 319 insertions(+), 30 deletions(-) delete mode 100644 packages/agent/conf/demos/konkuk/oid4vci_metadata/ensure-dir create mode 100644 packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json delete mode 100644 packages/agent/conf/demos/konkuk/templates/knb_kvk/KvkInschrijving.hbs create mode 100644 packages/agent/conf/demos/konkuk/templates/konkuk/EmployeeCredential.hbs create mode 100644 packages/agent/conf/demos/konkuk/templates/konkuk/StudentCredential.hbs delete mode 100644 packages/agent/conf/demos/konkuk/templates/sphereonGuest/GuestCredential.hbs rename packages/oid4vci-demo-frontend/public/konkuk/{logo.svg => konkuk_logo.svg} (100%) create mode 100644 packages/oid4vci-demo-frontend/src/configs/konkuk.json diff --git a/packages/agent/conf/demos/konkuk/oid4vci_metadata/ensure-dir b/packages/agent/conf/demos/konkuk/oid4vci_metadata/ensure-dir deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json b/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json new file mode 100644 index 00000000..34b7c9d2 --- /dev/null +++ b/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json @@ -0,0 +1,243 @@ +{ + "correlationId": "https://agent.konkuk.demo.sphereon.com", + "overwriteExisting": true, + "metadata": { + "credential_issuer": "https://agent.konkuk.demo.sphereon.com", + "credential_endpoint": "https://agent.konkuk.demo.sphereon.com/credentials", + "display": [ + { + "name": "Konkuk University", + "description": "Konkuk University Issuer" + } + ], + "credentials_supported": [ + { + "display": [ + { + "name": "Student credential", + "description": "Student credential", + "background_color": "rgba(0, 0, 0, 0.2)", + "text_color": "#FBFBFB", + "logo": { + "url": "https://i.ibb.co/PwfCJFK/konkuk-logo.png", + "alt_text": "Konkuk University logo" + }, + "background_image": { + "url": "https://i.ibb.co/6tKP1rs/konkuk-bg.png", + "alt_text": "A guy in front of the window" + } + }, + { + "locale": "en-US", + "name": "Student credential", + "description": "student credential", + "background_color": "rgba(0, 0, 0, 0.2)", + "text_color": "#FBFBFB", + "logo": { + "url": "https://i.ibb.co/PwfCJFK/konkuk-logo.png", + "alt_text": "Konkuk University logo" + }, + "background_image": { + "url": "https://i.ibb.co/6tKP1rs/konkuk-bg.png", + "alt_text": "A guy in front of the window" + } + } + ], + "order": [ + "firstName", + "lastName", + "dateOfBirth", + "studentNumber", + "subject" + ], + "credentialSubject": { + "firstName": { + "value_type": "string", + "display": [ + { + "name": "First Name" + }, + { + "name": "First Name", + "locale": "en-US" + } + ] + }, + "lastName": { + "value_type": "string", + "display": [ + { + "name": "Last Name" + }, + { + "name": "Last Name", + "locale": "en-US" + } + ] + }, + "dateOfBirth": { + "value_type": "string", + "display": [ + { + "name": "Date Of Birth" + }, + { + "name": "Date Of Birth", + "locale": "en-US" + } + ] + }, + "studentNumber": { + "value_type": "string", + "display": [ + { + "name": "Student Number" + }, + { + "name": "Student Number", + "locale": "en-US" + } + ] + }, + "subject": { + "value_type": "string", + "display": [ + { + "name": "Subject" + }, + { + "name": "Subject", + "locale": "en-US" + } + ] + } + }, + "id": "konkuk_university", + "types": [ + "VerifiableCredential", + "StudentCredential" + ], + "format": "jwt_vc_json", + "cryptographic_binding_methods_supported": [ + "did:web", + "did:jwk" + ], + "cryptographic_suites_supported": [ + "ES256", + "ES256K", + "EdDSA" + ] + }, + { + "display": [ + { + "name": "Employee credential", + "description": "Employee credential", + "background_color": "rgba(0, 0, 0, 0.2)", + "text_color": "#FBFBFB", + "logo": { + "url": "https://i.ibb.co/PwfCJFK/konkuk-logo.png", + "alt_text": "Konkuk University logo" + }, + "background_image": { + "url": "https://i.ibb.co/6tKP1rs/konkuk-bg.png", + "alt_text": "A guy in front of the window" + } + }, + { + "locale": "en-US", + "name": "Employee credential", + "description": "employee credential", + "background_color": "rgba(0, 0, 0, 0.2)", + "text_color": "#FBFBFB", + "logo": { + "url": "https://i.ibb.co/PwfCJFK/konkuk-logo.png", + "alt_text": "Konkuk University logo" + }, + "background_image": { + "url": "https://i.ibb.co/6tKP1rs/konkuk-bg.png", + "alt_text": "A guy in front of the window" + } + } + ], + "order": [ + "firstName", + "lastName", + "dateOfBirth" + ], + "credentialSubject": { + "firstName": { + "value_type": "string", + "display": [ + { + "name": "First Name" + }, + { + "name": "First Name", + "locale": "en-US" + } + ] + }, + "lastName": { + "value_type": "string", + "display": [ + { + "name": "Last Name" + }, + { + "name": "Last Name", + "locale": "en-US" + } + ] + }, + "dateOfBirth": { + "value_type": "string", + "display": [ + { + "name": "Date Of Birth" + }, + { + "name": "Date Of Birth", + "locale": "en-US" + } + ] + } + }, + "id": "konkuk_university", + "types": [ + "VerifiableCredential", + "EmployeeCredential" + ], + "format": "jwt_vc_json", + "cryptographic_binding_methods_supported": [ + "did:web", + "did:jwk" + ], + "cryptographic_suites_supported": [ + "ES256", + "ES256K", + "EdDSA" + ] + } + ], + "credential_supplier_config": { + "templates_base_dir": "templates/konkuk", + "template_mappings": [ + { + "credential_types": [ + "StudentCredential" + ], + "template_path": "StudentCredential.hbs", + "format": "jwt_vc_json" + }, + { + "credential_types": [ + "EmployeeCredential" + ], + "template_path": "EmployeeCredential.hbs", + "format": "jwt_vc_json" + } + ] + } + } +} diff --git a/packages/agent/conf/demos/konkuk/templates/knb_kvk/KvkInschrijving.hbs b/packages/agent/conf/demos/konkuk/templates/knb_kvk/KvkInschrijving.hbs deleted file mode 100644 index bacc968f..00000000 --- a/packages/agent/conf/demos/konkuk/templates/knb_kvk/KvkInschrijving.hbs +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1" - ], - "type": [ - "VerifiableCredential", - "KvkInschrijving" - ], - "expirationDate": "{{{ dateTimeAfterMonths 12 }}}", - "credentialSubject": { - "description": "Company registered with the KvK", - {{{mergeJSON @root}}} - } -} diff --git a/packages/agent/conf/demos/konkuk/templates/konkuk/EmployeeCredential.hbs b/packages/agent/conf/demos/konkuk/templates/konkuk/EmployeeCredential.hbs new file mode 100644 index 00000000..e8a54540 --- /dev/null +++ b/packages/agent/conf/demos/konkuk/templates/konkuk/EmployeeCredential.hbs @@ -0,0 +1,14 @@ +{ + "@context": [ + "https://www.w3.org/2018/credentials/v1" + ], + "type": [ + "VerifiableCredential", + "EmployeeCredential" + ], + "credentialSubject": { + "fistName": "{{fistName}}", + "lastName": "{{lastName}}", + "dateOfBirth": "{{dateOfBirth}}" + } +} diff --git a/packages/agent/conf/demos/konkuk/templates/konkuk/StudentCredential.hbs b/packages/agent/conf/demos/konkuk/templates/konkuk/StudentCredential.hbs new file mode 100644 index 00000000..f696b151 --- /dev/null +++ b/packages/agent/conf/demos/konkuk/templates/konkuk/StudentCredential.hbs @@ -0,0 +1,16 @@ +{ + "@context": [ + "https://www.w3.org/2018/credentials/v1" + ], + "type": [ + "VerifiableCredential", + "StudentCredential" + ], + "credentialSubject": { + "fistName": "{{fistName}}", + "lastName": "{{lastName}}", + "dateOfBirth": "{{dateOfBirth}}", + "studentNumber": "{{studentNumber}}", + "subject": "{{subject}}" + } +} diff --git a/packages/agent/conf/demos/konkuk/templates/sphereonGuest/GuestCredential.hbs b/packages/agent/conf/demos/konkuk/templates/sphereonGuest/GuestCredential.hbs deleted file mode 100644 index b103f8f4..00000000 --- a/packages/agent/conf/demos/konkuk/templates/sphereonGuest/GuestCredential.hbs +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context":[ - "https://www.w3.org/2018/credentials/v1" - ], - "type":[ - "VerifiableCredential", - "GuestCredential" - ], - "expirationDate":"{{{ dateTimeAfterDays 7 }}}", - "credentialSubject":{ - "firstName":"{{firstName}}", - "lastName":"{{lastName}}", - "email":"{{email}}", - "type":"Sphereon Guest" - } -} diff --git a/packages/oid4vci-demo-frontend/public/konkuk/logo.svg b/packages/oid4vci-demo-frontend/public/konkuk/konkuk_logo.svg similarity index 100% rename from packages/oid4vci-demo-frontend/public/konkuk/logo.svg rename to packages/oid4vci-demo-frontend/public/konkuk/konkuk_logo.svg diff --git a/packages/oid4vci-demo-frontend/src/configs/konkuk.json b/packages/oid4vci-demo-frontend/src/configs/konkuk.json new file mode 100644 index 00000000..b1b12976 --- /dev/null +++ b/packages/oid4vci-demo-frontend/src/configs/konkuk.json @@ -0,0 +1,46 @@ +{ + "pages": { + "landingPage": { + "backgroundColor": "#FFFFFF", + "credentials": [ + { + "name": "Konkuk University Employee", + "description": "We need to verify that you are an employee", + "route": "https://agent.konkuk.demo.sphereon.com", + "backgroundColor": "#4542f2", + "logo": { + "src": "konkuk/konkuk_logo.svg", + "alt": "konkuk university", + "width": 400, + "height": 146 + } + }, + { + "name": "Konkuk University Student", + "description": "We need to verify that you are a student", + "route": "https://agent.konkuk.demo.sphereon.com", + "backgroundColor": "#aac930", + "logo": { + "src": "konkuk/konkuk_logo.svg", + "alt": "konkuk university", + "width": 400, + "height": 146 + } + } + ] + } + }, + "routes": [ + { + "id": "default", + "steps": [ + { + "id": "landingPage", + "operation": "navigate", + "path": "/landing", + "isDefaultRoute": true + } + ] + } + ] +} From 50af7f99d1791b900dbd7bcba001d0151f9250c0 Mon Sep 17 00:00:00 2001 From: Zoe Maas Date: Tue, 11 Jun 2024 11:33:54 +0200 Subject: [PATCH 2/3] refactor: Updated to use draft 13 specs --- .../conf/demos/konkuk/dids/jwk-es256k.json | 12 -- .../demos/konkuk/oid4vci_metadata/konkuk.json | 178 +++--------------- .../demos/konkuk/oid4vci_options/konkuk.json | 9 + .../oid4vp_options/konkuk-employee.json | 59 ------ .../konkuk/oid4vp_options/konkuk-student.json | 59 ------ .../ensure-dir => oid4vp_options/na} | 0 .../konkuk-employee.json | 17 -- .../konkuk-student.json | 17 -- .../demos/konkuk/presentation_definitions/na | 0 .../{konkuk => }/EmployeeCredential.hbs | 0 .../{konkuk => }/StudentCredential.hbs | 0 11 files changed, 40 insertions(+), 311 deletions(-) delete mode 100644 packages/agent/conf/demos/konkuk/dids/jwk-es256k.json create mode 100644 packages/agent/conf/demos/konkuk/oid4vci_options/konkuk.json delete mode 100644 packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-employee.json delete mode 100644 packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-student.json rename packages/agent/conf/demos/konkuk/{oid4vci_options/ensure-dir => oid4vp_options/na} (100%) delete mode 100644 packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-employee.json delete mode 100644 packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-student.json create mode 100644 packages/agent/conf/demos/konkuk/presentation_definitions/na rename packages/agent/conf/demos/konkuk/templates/{konkuk => }/EmployeeCredential.hbs (100%) rename packages/agent/conf/demos/konkuk/templates/{konkuk => }/StudentCredential.hbs (100%) diff --git a/packages/agent/conf/demos/konkuk/dids/jwk-es256k.json b/packages/agent/conf/demos/konkuk/dids/jwk-es256k.json deleted file mode 100644 index 9115a9ac..00000000 --- a/packages/agent/conf/demos/konkuk/dids/jwk-es256k.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "privateKeyHex": "2305245eb1201a7769cb35f02f24b06c0ac3ff49eb085f8562f06fa6c41e68cd", - "did": "did:jwk:eyJhbGciOiJFUzI1NiIsInVzZSI6InNpZyIsImt0eSI6IkVDIiwiY3J2IjoiUC0yNTYiLCJ4IjoiYV8yeXExSkkzdUoweENrSG5obXZaR0ZUaHIxY0hnRnF3M082dzYyeGxwOCIsInkiOiI3VWlQVnZLeExHaWpGbjdHQ1U0SFBDWXdmeDc2SjZpN2dmUUtMazdfRi1jIn0", - "createArgs": { - "provider": "did:jwk", - "options": { - "type": "Secp256r1", - "kid": "did:jwk:eyJhbGciOiJFUzI1NiIsInVzZSI6InNpZyIsImt0eSI6IkVDIiwiY3J2IjoiUC0yNTYiLCJ4IjoiYV8yeXExSkkzdUoweENrSG5obXZaR0ZUaHIxY0hnRnF3M082dzYyeGxwOCIsInkiOiI3VWlQVnZLeExHaWpGbjdHQ1U0SFBDWXdmeDc2SjZpN2dmUUtMazdfRi1jIn0#0", - "keyType": "Secp256r1" - } - } -} diff --git a/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json b/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json index 34b7c9d2..f8123842 100644 --- a/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json +++ b/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json @@ -1,17 +1,24 @@ { - "correlationId": "https://agent.konkuk.demo.sphereon.com", + "correlationId": "https://agent.issuer.konkuk.demo.sphereon.com", "overwriteExisting": true, "metadata": { - "credential_issuer": "https://agent.konkuk.demo.sphereon.com", - "credential_endpoint": "https://agent.konkuk.demo.sphereon.com/credentials", + "credential_issuer": "https://agent.issuer.konkuk.demo.sphereon.com", + "credential_endpoint": "https://agent.issuer.konkuk.demo.sphereon.com/credentials", "display": [ { "name": "Konkuk University", "description": "Konkuk University Issuer" } ], - "credentials_supported": [ - { + "credential_configurations_supported": { + "Woonplaatsverklaring": { + "format": "jwt_vc_json", + "cryptographic_binding_methods_supported": [ + "did:jwk" + ], + "cryptographic_suites_supported": [ + "ES256" + ], "display": [ { "name": "Student credential", @@ -42,93 +49,22 @@ "alt_text": "A guy in front of the window" } } - ], - "order": [ - "firstName", - "lastName", - "dateOfBirth", - "studentNumber", - "subject" - ], - "credentialSubject": { - "firstName": { - "value_type": "string", - "display": [ - { - "name": "First Name" - }, - { - "name": "First Name", - "locale": "en-US" - } - ] - }, - "lastName": { - "value_type": "string", - "display": [ - { - "name": "Last Name" - }, - { - "name": "Last Name", - "locale": "en-US" - } - ] - }, - "dateOfBirth": { - "value_type": "string", - "display": [ - { - "name": "Date Of Birth" - }, - { - "name": "Date Of Birth", - "locale": "en-US" - } - ] - }, - "studentNumber": { - "value_type": "string", - "display": [ - { - "name": "Student Number" - }, - { - "name": "Student Number", - "locale": "en-US" - } - ] - }, - "subject": { - "value_type": "string", - "display": [ - { - "name": "Subject" - }, - { - "name": "Subject", - "locale": "en-US" - } - ] - } - }, - "id": "konkuk_university", - "types": [ - "VerifiableCredential", - "StudentCredential" - ], + ], + "credential_definition": { + "type": [ + "VerifiableCredential", + "StudentCredential" + ] + } + }, + "Omzetbelasting": { "format": "jwt_vc_json", "cryptographic_binding_methods_supported": [ - "did:web", "did:jwk" ], "cryptographic_suites_supported": [ - "ES256", - "ES256K", - "EdDSA" - ] - }, - { + "ES256" + ], "display": [ { "name": "Employee credential", @@ -147,7 +83,7 @@ { "locale": "en-US", "name": "Employee credential", - "description": "employee credential", + "description": "Employee credential", "background_color": "rgba(0, 0, 0, 0.2)", "text_color": "#FBFBFB", "logo": { @@ -160,68 +96,16 @@ } } ], - "order": [ - "firstName", - "lastName", - "dateOfBirth" - ], - "credentialSubject": { - "firstName": { - "value_type": "string", - "display": [ - { - "name": "First Name" - }, - { - "name": "First Name", - "locale": "en-US" - } - ] - }, - "lastName": { - "value_type": "string", - "display": [ - { - "name": "Last Name" - }, - { - "name": "Last Name", - "locale": "en-US" - } - ] - }, - "dateOfBirth": { - "value_type": "string", - "display": [ - { - "name": "Date Of Birth" - }, - { - "name": "Date Of Birth", - "locale": "en-US" - } - ] - } - }, - "id": "konkuk_university", - "types": [ - "VerifiableCredential", - "EmployeeCredential" - ], - "format": "jwt_vc_json", - "cryptographic_binding_methods_supported": [ - "did:web", - "did:jwk" - ], - "cryptographic_suites_supported": [ - "ES256", - "ES256K", - "EdDSA" - ] + "credential_definition": { + "type": [ + "VerifiableCredential", + "EmployeeCredential" + ] + } } ], "credential_supplier_config": { - "templates_base_dir": "templates/konkuk", + "templates_base_dir": "templates", "template_mappings": [ { "credential_types": [ diff --git a/packages/agent/conf/demos/konkuk/oid4vci_options/konkuk.json b/packages/agent/conf/demos/konkuk/oid4vci_options/konkuk.json new file mode 100644 index 00000000..00646787 --- /dev/null +++ b/packages/agent/conf/demos/konkuk/oid4vci_options/konkuk.json @@ -0,0 +1,9 @@ +{ + "definitionId": "konkuk", + "correlationId": "https://agent.issuer.konkuk.demo.sphereon.com", + "issuerOpts": { + "didOpts": { + "checkLinkedDomains": "if_present" + } + } +} diff --git a/packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-employee.json b/packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-employee.json deleted file mode 100644 index 2f00ce48..00000000 --- a/packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-employee.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "definitionId": "konkukEmployee", - "rpOpts": { - "supportedVersions": [ - 180, - 110 - ], - "responseMode": "direct_post", - "clientMetadataOpts": { - "idTokenSigningAlgValuesSupported": [ - "ES256" - ], - "requestObjectSigningAlgValuesSupported": [ - "ES256" - ], - "responseTypesSupported": [ - "id_token", - "vp_token" - ], - "client_name": "Sphereon", - "vpFormatsSupported": { - "jwt_vc_json": { - "alg": [ - "ES256" - ] - }, - "jwt_vp_json": { - "alg": [ - "ES256" - ] - }, - "jwt_vc": { - "alg": [ - "ES256" - ] - }, - "jwt_vp": { - "alg": [ - "ES256" - ] - } - }, - "scopesSupported": [ - "openid did_authn" - ], - "subjectTypesSupported": [ - "pairwise" - ], - "subject_syntax_types_supported": [ - "did:web", - "did:jwk" - ], - "passBy": "VALUE" - }, - "didOpts": { - "checkLinkedDomains": "if_present" - } - } -} diff --git a/packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-student.json b/packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-student.json deleted file mode 100644 index 6474263c..00000000 --- a/packages/agent/conf/demos/konkuk/oid4vp_options/konkuk-student.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "definitionId": "konkukStudent", - "rpOpts": { - "supportedVersions": [ - 180, - 110 - ], - "responseMode": "direct_post", - "clientMetadataOpts": { - "idTokenSigningAlgValuesSupported": [ - "ES256" - ], - "requestObjectSigningAlgValuesSupported": [ - "ES256" - ], - "responseTypesSupported": [ - "id_token", - "vp_token" - ], - "client_name": "Sphereon", - "vpFormatsSupported": { - "jwt_vc_json": { - "alg": [ - "ES256" - ] - }, - "jwt_vp_json": { - "alg": [ - "ES256" - ] - }, - "jwt_vc": { - "alg": [ - "ES256" - ] - }, - "jwt_vp": { - "alg": [ - "ES256" - ] - } - }, - "scopesSupported": [ - "openid did_authn" - ], - "subjectTypesSupported": [ - "pairwise" - ], - "subject_syntax_types_supported": [ - "did:web", - "did:jwk" - ], - "passBy": "VALUE" - }, - "didOpts": { - "checkLinkedDomains": "if_present" - } - } -} diff --git a/packages/agent/conf/demos/konkuk/oid4vci_options/ensure-dir b/packages/agent/conf/demos/konkuk/oid4vp_options/na similarity index 100% rename from packages/agent/conf/demos/konkuk/oid4vci_options/ensure-dir rename to packages/agent/conf/demos/konkuk/oid4vp_options/na diff --git a/packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-employee.json b/packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-employee.json deleted file mode 100644 index 0ef3b6cf..00000000 --- a/packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-employee.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "id": "konkukEmployee", - "name": "Konkuk University Employee", - "purpose": "We need to verify that you are an employee", - "input_descriptors": [ - { - "id": "3476d72d-a018-4c84-a335-5d11ec6b2655", - "name": "Employee verification", - "purpose": "We need to verify that you are a employee", - "schema": [ - { - "uri": "Employee" - } - ] - } - ] -} diff --git a/packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-student.json b/packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-student.json deleted file mode 100644 index bb70dbbd..00000000 --- a/packages/agent/conf/demos/konkuk/presentation_definitions/konkuk-student.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "id": "konkukStudent", - "name": "Konkuk University Student", - "purpose": "We need to verify that you are a student", - "input_descriptors": [ - { - "id": "261ad72d-a018-4c84-a335-5d11ec6b2655", - "name": "Student verification", - "purpose": "We need to verify that you are a student", - "schema": [ - { - "uri": "Student" - } - ] - } - ] -} diff --git a/packages/agent/conf/demos/konkuk/presentation_definitions/na b/packages/agent/conf/demos/konkuk/presentation_definitions/na new file mode 100644 index 00000000..e69de29b diff --git a/packages/agent/conf/demos/konkuk/templates/konkuk/EmployeeCredential.hbs b/packages/agent/conf/demos/konkuk/templates/EmployeeCredential.hbs similarity index 100% rename from packages/agent/conf/demos/konkuk/templates/konkuk/EmployeeCredential.hbs rename to packages/agent/conf/demos/konkuk/templates/EmployeeCredential.hbs diff --git a/packages/agent/conf/demos/konkuk/templates/konkuk/StudentCredential.hbs b/packages/agent/conf/demos/konkuk/templates/StudentCredential.hbs similarity index 100% rename from packages/agent/conf/demos/konkuk/templates/konkuk/StudentCredential.hbs rename to packages/agent/conf/demos/konkuk/templates/StudentCredential.hbs From b6ad843d4816ff7ba945161f7b555f6695870d1a Mon Sep 17 00:00:00 2001 From: Zoe Maas Date: Tue, 11 Jun 2024 11:56:26 +0200 Subject: [PATCH 3/3] refactor: Fixed errors in the metadata file --- .../agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json b/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json index f8123842..bd880ba6 100644 --- a/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json +++ b/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json @@ -11,7 +11,7 @@ } ], "credential_configurations_supported": { - "Woonplaatsverklaring": { + "StudentCredential": { "format": "jwt_vc_json", "cryptographic_binding_methods_supported": [ "did:jwk" @@ -49,7 +49,7 @@ "alt_text": "A guy in front of the window" } } - ], + ], "credential_definition": { "type": [ "VerifiableCredential", @@ -57,7 +57,7 @@ ] } }, - "Omzetbelasting": { + "EmployeeCredential": { "format": "jwt_vc_json", "cryptographic_binding_methods_supported": [ "did:jwk" @@ -103,7 +103,7 @@ ] } } - ], + }, "credential_supplier_config": { "templates_base_dir": "templates", "template_mappings": [