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 new file mode 100644 index 00000000..bd880ba6 --- /dev/null +++ b/packages/agent/conf/demos/konkuk/oid4vci_metadata/konkuk.json @@ -0,0 +1,127 @@ +{ + "correlationId": "https://agent.issuer.konkuk.demo.sphereon.com", + "overwriteExisting": true, + "metadata": { + "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" + } + ], + "credential_configurations_supported": { + "StudentCredential": { + "format": "jwt_vc_json", + "cryptographic_binding_methods_supported": [ + "did:jwk" + ], + "cryptographic_suites_supported": [ + "ES256" + ], + "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" + } + } + ], + "credential_definition": { + "type": [ + "VerifiableCredential", + "StudentCredential" + ] + } + }, + "EmployeeCredential": { + "format": "jwt_vc_json", + "cryptographic_binding_methods_supported": [ + "did:jwk" + ], + "cryptographic_suites_supported": [ + "ES256" + ], + "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" + } + } + ], + "credential_definition": { + "type": [ + "VerifiableCredential", + "EmployeeCredential" + ] + } + } + }, + "credential_supplier_config": { + "templates_base_dir": "templates", + "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/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_metadata/ensure-dir b/packages/agent/conf/demos/konkuk/oid4vp_options/na similarity index 100% rename from packages/agent/conf/demos/konkuk/oid4vci_metadata/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/oid4vci_options/ensure-dir b/packages/agent/conf/demos/konkuk/presentation_definitions/na similarity index 100% rename from packages/agent/conf/demos/konkuk/oid4vci_options/ensure-dir rename to packages/agent/conf/demos/konkuk/presentation_definitions/na diff --git a/packages/agent/conf/demos/konkuk/templates/EmployeeCredential.hbs b/packages/agent/conf/demos/konkuk/templates/EmployeeCredential.hbs new file mode 100644 index 00000000..e8a54540 --- /dev/null +++ b/packages/agent/conf/demos/konkuk/templates/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/StudentCredential.hbs b/packages/agent/conf/demos/konkuk/templates/StudentCredential.hbs new file mode 100644 index 00000000..f696b151 --- /dev/null +++ b/packages/agent/conf/demos/konkuk/templates/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/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/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 + } + ] + } + ] +}