Skip to content

Commit

Permalink
fix, issuer should've been scheme manager name
Browse files Browse the repository at this point in the history
  • Loading branch information
saravahdatipour committed Dec 5, 2024
1 parent 1cb491d commit 929dbc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@


if (DEMO) {
define('ISSUER', 'irma-demo');
define('SCHEME', 'irma-demo');
define('BASE_URL', 'http://localhost:8080');
define('IRMATUBE_NEXT_SESSION_URL', BASE_URL . '/get_session_request.php');
define('IRMATUBE_CREDENTIAL', 'irma-demo.IRMATube.member');
} else {
define('ISSUER',getenv('ISSUER') ?: 'pbdf');
define('SCHEME',getenv('SCHEME') ?: 'pbdf');
define('BASE_URL', getenv('BASE_URL') ?: 'https://privacybydesign.foundation');
define('IRMATUBE_NEXT_SESSION_URL',getenv('IRMATUBE_NEXT_SESSION_URL') ?: BASE_URL . '/get_session_request.php');
define('IRMATUBE_CREDENTIAL', getenv('IRMATUBE_CREDENTIAL') ?: 'pbdf.pbdf.irmatube');
Expand Down
8 changes: 4 additions & 4 deletions start_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@
'disclose' => [
array_merge(
[
[ISSUER .'.pbdf.linkedin.familyname'],
[ISSUER .'.gemeente.personalData.fullname'],
DESIRED_ATTRIBUTE_TO_DISCLOSE ? [ISSUER . DESIRED_ATTRIBUTE_TO_DISCLOSE] : [],
[SCHEME .'.pbdf.linkedin.familyname'],
[SCHEME .'.gemeente.personalData.fullname'],
DESIRED_ATTRIBUTE_TO_DISCLOSE ? [SCHEME . DESIRED_ATTRIBUTE_TO_DISCLOSE] : [],
],
ISSUER === 'pbdf' ? [
SCHEME === 'pbdf' ? [
['pbdf.pilot-amsterdam.idcard.surname'],
['pbdf.pilot-amsterdam.passport.surname'],
] : [] // These credential types have no equivalent in irma-demo
Expand Down

0 comments on commit 929dbc9

Please sign in to comment.