Skip to content

Commit

Permalink
Merge pull request #39 from gunet/generic-selectable-presentation
Browse files Browse the repository at this point in the history
made selectable presentation generic to cover all type of credentials
  • Loading branch information
kkmanos authored Sep 6, 2024
2 parents 2f7c2db + c0d4fa5 commit f6123aa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,37 @@ const customVerifiableIdSdJwtPresentationDefinition = {
]
}

const customEHICSdJwtPresentationDefinition = {
"id": "CustomEHIC",
"title": "Custom EHIC",
"description": "Selectable Fields:...",
"selectable": true,
"format": { "vc+sd-jwt": { alg: ['ES256'] }, jwt_vc_json: { alg: ['ES256'] }, jwt_vp: { alg: ['ES256'] } },
"input_descriptors": [
europeanHealthInsuranceCardDescriptor
]
}

const customPDA1SdJwtPresentationDefinition = {
"id": "CustomPDA1",
"title": "Custom PDA1",
"description": "Selectable Fields:...",
"selectable": true,
"format": { "vc+sd-jwt": { alg: ['ES256'] }, jwt_vc_json: { alg: ['ES256'] }, jwt_vp: { alg: ['ES256'] } },
"input_descriptors": [
Pda1Descriptor
]
}

@injectable()
export class VerifierConfigurationService implements VerifierConfigurationInterface {


getPresentationDefinitions(): PresentationDefinitionTypeWithFormat[] {
return [
customVerifiableIdSdJwtPresentationDefinition,
customEHICSdJwtPresentationDefinition,
customPDA1SdJwtPresentationDefinition,
verifiableIdWithEuropeanHealthInsuranceCardPresentationDefinition,
verifiableIdWithPda1PresentationDefinition,
// verifiableIdWithPda1WithEuropeanHealthInsuranceCardPresentationDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ block layout-content
th Value
tbody
each claim in presentationClaims[claimType]
tr
td= claim.name
td= claim.value
if claim.name != 'Credential Type'
tr
td= claim.name
td= claim.value

h3 Credentials

Expand Down

0 comments on commit f6123aa

Please sign in to comment.