Skip to content

Commit

Permalink
Merge pull request #22 from privacybydesign/desired-attribute
Browse files Browse the repository at this point in the history
SCHEME variable now accounts for our staging scheme
  • Loading branch information
saravahdatipour authored Dec 5, 2024
2 parents d10eef1 + 2b12341 commit 8797619
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions start_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,17 @@
array_merge(
[
[SCHEME .'.pbdf.linkedin.familyname'],
[SCHEME .'.gemeente.personalData.fullname'],
DESIRED_ATTRIBUTE_TO_DISCLOSE ? [SCHEME .".".DESIRED_ATTRIBUTE_TO_DISCLOSE] : [],
],
SCHEME === 'pbdf' ? [
[SCHEME .'.gemeente.personalData.fullname'],
['pbdf.pilot-amsterdam.idcard.surname'],
['pbdf.pilot-amsterdam.passport.surname'],
] : [] // These credential types have no equivalent in irma-demo
] : [], // These credential types have no equivalent in irma-demo

SCHEME == 'irma-demo' ? [
[SCHEME .'.gemeente.personalData.fullname'],
] : []
),
],
]
Expand Down

0 comments on commit 8797619

Please sign in to comment.