Skip to content

Commit

Permalink
feat: added cred def restriction to template for OCA (#1533)
Browse files Browse the repository at this point in the history
Signed-off-by: wadeking98 <[email protected]>
  • Loading branch information
wadeking98 authored Oct 12, 2023
1 parent 0568c37 commit 69a8ec8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/request-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useProofRequestTemplates = (useDevRestrictions: boolean) => {
{ schema_id: 'Ui6HA36FvN83cEtmYYHxrn:2:unverified_person:0.1.0', issuer_did: 'Ui6HA36FvN83cEtmYYHxrn' },
]

const personSchema = 'XUxBrVSALWHLeycAUhrNr9:2:Person:1.0'
const personSchema = 'RGjWbW1eycP7FrMf4QJvX8:2:Person:1.0'
const verifiedPersonDevRestrictions = [
// IDIM Person credential
{ schema_id: 'XpgeQa93eZvGSZBZef3PHn:2:Person:1.0', issuer_did: '7xjfawcnyTUcduWVysLww5' }, // SIT
Expand All @@ -28,12 +28,13 @@ export const useProofRequestTemplates = (useDevRestrictions: boolean) => {
const verifiedPersonRestrictions = [
// IDIM Person credential
{ schema_id: 'RGjWbW1eycP7FrMf4QJvX8:2:Person:1.0', issuer_did: 'RGjWbW1eycP7FrMf4QJvX8' }, // Prod
{ cred_def_id: 'RGjWbW1eycP7FrMf4QJvX8:3:CL:13:Person' },
...(useDevRestrictions ? verifiedPersonDevRestrictions : []),
]

const personRestrictions = [...verifiedPersonRestrictions, ...openvpRestrictions]

const memberCardSchema = 'XUxBrVSALWHLeycAUhrNr9:2:Member Card:1.5.1'
const memberCardSchema = '4xE68b6S5VRFrKMMG1U95M:2:Member Card:1.5.1'
const memberCardDevRestrictions = [
// LSBC Member Card
{ schema_id: '4xE68b6S5VRFrKMMG1U95M:2:Member Card:1.5.1', issuer_did: '4xE68b6S5VRFrKMMG1U95M' }, // Prod
Expand All @@ -46,6 +47,7 @@ export const useProofRequestTemplates = (useDevRestrictions: boolean) => {
const memberCardRestrictions = [
// LSBC Member Card
{ schema_id: '4xE68b6S5VRFrKMMG1U95M:2:Member Card:1.5.1', issuer_did: '4xE68b6S5VRFrKMMG1U95M' }, // Prod
{ cred_def_id: '4xE68b6S5VRFrKMMG1U95M:3:CL:59232:default' },
...(useDevRestrictions ? memberCardDevRestrictions : []),
]

Expand Down

0 comments on commit 69a8ec8

Please sign in to comment.