Skip to content

Commit 96ab8bb

Browse files
authored
Merge pull request #86 from Sphereon-Opensource/feature/VDX-277
feature/VDX-277
2 parents 719415b + 0e56778 commit 96ab8bb

14 files changed

Lines changed: 454 additions & 310 deletions

File tree

packages/agent/conf/demos/energy-shr/oid4vci_metadata/energyshr.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,18 @@
146146
"EdDSA"
147147
]
148148
}
149-
]
149+
],
150+
"credential_supplier_config": {
151+
"templates_base_dir": "templates/energySHR",
152+
"template_mappings": [
153+
{
154+
"credential_types": [
155+
"GuestCredential"
156+
],
157+
"template_path": "GuestCredential.hbs",
158+
"format": "jwt_vc_json"
159+
}
160+
]
161+
}
150162
}
151163
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"definitionId": "sphereonWalletIdentity",
3+
"rpOpts": {
4+
"didOpts": {
5+
"checkLinkedDomains": "if_present"
6+
}
7+
}
8+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"id": "sphereonWalletIdentity",
3+
"purpose": "To onboard you we need your firstname, lastname and e-mail",
4+
"input_descriptors": [
5+
{
6+
"id": "ace7aff1-0234-4f35-9d21-251668a60950",
7+
"name": "Wallet identity",
8+
"purpose": "You need to provide your Wallet Identity.",
9+
"schema": [
10+
{
11+
"uri": "SphereonWalletIdentityCredential"
12+
}
13+
]
14+
}
15+
]
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"@context": [
3+
"https://www.w3.org/2018/credentials/v1"
4+
],
5+
"type": [
6+
"VerifiableCredential",
7+
"GuestCredential"
8+
],
9+
"expirationDate": "{{{ dateTimeAfterDays 7 }}}",
10+
"credentialSubject": {
11+
"firstName": "{{firstName}}",
12+
"lastName": "{{lastName}}",
13+
"email": "{{email}}",
14+
"type": "EnergySHR Guest"
15+
}
16+
}

packages/agent/conf/demos/fmdm/templates/fmdm/GuestCredential.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"credentialSubject": {
1111
"firstName": "{{firstName}}",
1212
"lastName": "{{lastName}}",
13-
"E-mail": "{{email}}",
14-
"type": "FMDM Guest"
13+
"email": "{{email}}",
14+
"type": "Future Mobility Alliance Guest"
1515
}
1616
}

packages/agent/conf/demos/sphereonGuest/oid4vci_metadata/sphereonGuest.json

Lines changed: 240 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -223,54 +223,52 @@
223223
{
224224
"display": [
225225
{
226-
"name": "Conference Attendee",
227-
"description": "The DBC Conference Attendee credential is given to all visitors of the DBC conference.",
228-
"background_color": "#3B6F6D",
226+
"name": "Membership Example",
227+
"description": "Membership Example credential",
229228
"text_color": "#FFFFFF",
230-
"logo": {
231-
"url": "https://dutchblockchaincoalition.org/assets/images/icons/Logo-DBC.png",
232-
"alt_text": "An orange block shape, with the text Dutch Blockchain Coalition next to it, portraying the logo of the Dutch Blockchain Coalition."
233-
},
234229
"background_image": {
235-
"url": "https://i.ibb.co/CHqjxrJ/dbc-card-hig-res.png",
236-
"alt_text": "Connected open cubes in blue with one orange cube as a background of the card"
230+
"url": "https://i.ibb.co/kmfrH4F/tulips.png",
231+
"alt_text": "Black and white photo of tulips with one red tulip"
232+
},
233+
"logo": {
234+
"url": "https://i.ibb.co/NWQQ9kt/sphereon-logo.png",
235+
"alt_text": "Red square depicting Sphereon logo."
237236
}
238237
},
239238
{
240239
"locale": "en-US",
241-
"name": "Conference Attendee",
242-
"description": "The DBC Conference Attendee credential is given to all visitors of the DBC conference.",
243-
"background_color": "#3B6F6D",
240+
"name": "Membership Example",
241+
"description": "Sphereon Membership Example credential for demo purposes.",
244242
"text_color": "#FFFFFF",
245-
"logo": {
246-
"url": "https://dutchblockchaincoalition.org/assets/images/icons/Logo-DBC.png",
247-
"alt_text": "An orange block shape, with the text Dutch Blockchain Coalition next to it, portraying the logo of the Dutch Blockchain Coalition."
248-
},
249243
"background_image": {
250-
"url": "https://i.ibb.co/CHqjxrJ/dbc-card-hig-res.png",
251-
"alt_text": "Connected open cubes in blue with one orange cube as a background of the card"
244+
"url": "https://i.ibb.co/kmfrH4F/tulips.png",
245+
"alt_text": "Black and white photo of tulips with one red tulip"
246+
},
247+
"logo": {
248+
"url": "https://i.ibb.co/NWQQ9kt/sphereon-logo.png",
249+
"alt_text": "Red square depicting Sphereon logo."
252250
}
253251
},
254252
{
255253
"locale": "nl-NL",
256-
"name": "Conferentie Deelnemer",
257-
"description": "De DBC Conferentie Deelnemer credential wordt uitgegeven aan alle bezoekers van de DBC conferentie.",
258-
"background_color": "#3B6F6D",
254+
"name": "Voorbeeld lidmaatschap",
255+
"description": "Sphereon voorbeeld lidmaatschap credential wordt uitgegeven voor demo doeleinden.",
259256
"text_color": "#FFFFFF",
260-
"logo": {
261-
"url": "https://dutchblockchaincoalition.org/assets/images/icons/Logo-DBC.png",
262-
"alt_text": "Aaneengesloten open blokken in de kleur blauw, met een blok in de kleur oranje, die tesamen de achtergrond van de kaart vormen."
263-
},
264257
"background_image": {
265-
"url": "https://i.ibb.co/CHqjxrJ/dbc-card-hig-res.png",
266-
"alt_text": "Connected open cubes in blue with one orange cube as a background of the card"
258+
"url": "https://i.ibb.co/kmfrH4F/tulips.png",
259+
"alt_text": "Black and white photo of tulips with one red tulip"
260+
},
261+
"logo": {
262+
"url": "https://i.ibb.co/NWQQ9kt/sphereon-logo.png",
263+
"alt_text": "Red square depicting Sphereon logo."
267264
}
268265
}
269266
],
270267
"order": [
271268
"firstName",
272269
"lastName",
273-
"email"
270+
"email",
271+
"type"
274272
],
275273
"credentialSubject": {
276274
"firstName": {
@@ -293,10 +291,10 @@
293291
"value_type": "string",
294292
"display": [
295293
{
296-
"name": "LastName"
294+
"name": "Last Name"
297295
},
298296
{
299-
"name": "Last name",
297+
"name": "Last Name",
300298
"locale": "en-US"
301299
},
302300
{
@@ -320,12 +318,194 @@
320318
"locale": "nl-NL"
321319
}
322320
]
321+
},
322+
"type": {
323+
"value_type": "string",
324+
"display": [
325+
{
326+
"name": "Type"
327+
},
328+
{
329+
"name": "Type",
330+
"locale": "en-US"
331+
},
332+
{
333+
"name": "Type",
334+
"locale": "nl-NL"
335+
}
336+
]
323337
}
324338
},
325-
"id": "dbc2023",
339+
"id": "MembershipExample",
326340
"types": [
327341
"VerifiableCredential",
328-
"DBCConferenceAttendee"
342+
"MembershipExample"
343+
],
344+
"format": "jwt_vc_json",
345+
"cryptographic_binding_methods_supported": [
346+
"did:web",
347+
"did:jwk"
348+
],
349+
"cryptographic_suites_supported": [
350+
"ES256",
351+
"ES256K",
352+
"EdDSA"
353+
]
354+
},
355+
{
356+
"display": [
357+
{
358+
"name": "Verified Employee",
359+
"description": "Verified employee credential",
360+
"text_color": "#FFFFFF",
361+
"background_image": {
362+
"url": "https://i.ibb.co/kmfrH4F/tulips.png",
363+
"alt_text": "Black and white photo of tulips with one red tulip"
364+
},
365+
"logo": {
366+
"url": "https://i.ibb.co/NWQQ9kt/sphereon-logo.png",
367+
"alt_text": "Red square depicting Sphereon logo."
368+
}
369+
},
370+
{
371+
"locale": "en-US",
372+
"name": "Verified Employee",
373+
"description": "Verified Employee credential for demo purposes.",
374+
"text_color": "#FFFFFF",
375+
"background_image": {
376+
"url": "https://i.ibb.co/kmfrH4F/tulips.png",
377+
"alt_text": "Black and white photo of tulips with one red tulip"
378+
},
379+
"logo": {
380+
"url": "https://i.ibb.co/NWQQ9kt/sphereon-logo.png",
381+
"alt_text": "Red square depicting Sphereon logo."
382+
}
383+
},
384+
{
385+
"locale": "nl-NL",
386+
"name": "Geverifieerde medewerker",
387+
"description": "Geverifieerde medewerker credential wordt uitgegeven voor demo doeleinden.",
388+
"text_color": "#FFFFFF",
389+
"background_image": {
390+
"url": "https://i.ibb.co/kmfrH4F/tulips.png",
391+
"alt_text": "Black and white photo of tulips with one red tulip"
392+
},
393+
"logo": {
394+
"url": "https://i.ibb.co/NWQQ9kt/sphereon-logo.png",
395+
"alt_text": "Red square depicting Sphereon logo."
396+
}
397+
}
398+
],
399+
"order": [
400+
"givenName",
401+
"surname",
402+
"mail",
403+
"displayName",
404+
"jobTitle",
405+
"preferredLanguage"
406+
],
407+
"credentialSubject": {
408+
"givenName": {
409+
"value_type": "string",
410+
"display": [
411+
{
412+
"name": "Given Name"
413+
},
414+
{
415+
"name": "Given Name",
416+
"locale": "en-US"
417+
},
418+
{
419+
"name": "Voornaam",
420+
"locale": "nl-NL"
421+
}
422+
]
423+
},
424+
"surname": {
425+
"value_type": "string",
426+
"display": [
427+
{
428+
"name": "Surname"
429+
},
430+
{
431+
"name": "Surname",
432+
"locale": "en-US"
433+
},
434+
{
435+
"name": "Achternaam",
436+
"locale": "nl-NL"
437+
}
438+
]
439+
},
440+
"mail": {
441+
"value_type": "string",
442+
"display": [
443+
{
444+
"name": "Email"
445+
},
446+
{
447+
"name": "Email",
448+
"locale": "en-US"
449+
},
450+
{
451+
"name": "Email",
452+
"locale": "nl-NL"
453+
}
454+
]
455+
},
456+
"displayName": {
457+
"value_type": "string",
458+
"display": [
459+
{
460+
"name": "Display Name"
461+
},
462+
{
463+
"name": "Display Name",
464+
"locale": "en-US"
465+
},
466+
{
467+
"name": "Weergavenaam",
468+
"locale": "nl-NL"
469+
}
470+
]
471+
},
472+
"jobTitle": {
473+
"value_type": "string",
474+
"display": [
475+
{
476+
"name": "Job Title"
477+
},
478+
{
479+
"name": "Job Title",
480+
"locale": "en-US"
481+
},
482+
{
483+
"name": "Functietitel",
484+
"locale": "nl-NL"
485+
}
486+
]
487+
},
488+
"preferredLanguage": {
489+
"value_type": "string",
490+
"display": [
491+
{
492+
"name": "Preferred Language"
493+
},
494+
{
495+
"name": "Preferred Language",
496+
"locale": "en-US"
497+
},
498+
{
499+
"name": "Voorkeurstaal",
500+
"locale": "nl-NL"
501+
}
502+
]
503+
}
504+
},
505+
"id": "VerifiedEmployee",
506+
"types": [
507+
"VerifiableCredential",
508+
"VerifiedEmployee"
329509
],
330510
"format": "jwt_vc_json",
331511
"cryptographic_binding_methods_supported": [
@@ -348,6 +528,34 @@
348528
],
349529
"template_path": "GuestCredential.hbs",
350530
"format": "jwt_vc_json"
531+
},
532+
{
533+
"credential_types": [
534+
"MembershipExample"
535+
],
536+
"template_path": "MembershipExample.hbs",
537+
"format": "jwt_vc_json"
538+
},
539+
{
540+
"credential_types": [
541+
"OpenBadgeCredential"
542+
],
543+
"template_path": "OpenBadgeCredential.hbs",
544+
"format": "jwt_vc_json"
545+
},
546+
{
547+
"credential_types": [
548+
"PermanentResidentCard"
549+
],
550+
"template_path": "PermanentResidentCard.hbs",
551+
"format": "jwt_vc_json"
552+
},
553+
{
554+
"credential_types": [
555+
"VerifiedEmployee"
556+
],
557+
"template_path": "VerifiedEmployee.hbs",
558+
"format": "jwt_vc_json"
351559
}
352560
]
353561
}

0 commit comments

Comments
 (0)