Skip to content

Commit

Permalink
feat: added member status checks to template (#1390)
Browse files Browse the repository at this point in the history
Signed-off-by: wadeking98 <[email protected]>
  • Loading branch information
wadeking98 authored Aug 17, 2023
1 parent 5331f9f commit b77080d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/src/request-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const memberCardCodeRestrictions = memberCardRestrictions.map((restriction) => {
export const proofRequestTemplates: Array<ProofRequestTemplate> = [
{
id: 'BC:5:PracticingLawyerAndPhoto:0.0.1:indy',
name: 'Practicing Lawyer and Person Photo Attribute',
description: 'Verify that someone is a practising lawyer with photo ID',
name: 'Lawyer Status and Photo',
description: "Verify someone's lawyer status and photo ID",
version: '0.0.1',
payload: {
type: ProofRequestType.AnonCreds,
Expand All @@ -59,7 +59,12 @@ export const proofRequestTemplates: Array<ProofRequestTemplate> = [
},
{
schema: memberCardSchema,
requestedAttributes: [{ names: ['Given Name', 'Surname'], restrictions: memberCardCodeRestrictions }],
requestedAttributes: [
{
names: ['Given Name', 'Surname', 'Member Status', 'Member Status Code'],
restrictions: memberCardCodeRestrictions,
},
],
},
],
},
Expand Down

0 comments on commit b77080d

Please sign in to comment.