Skip to content

Commit

Permalink
Fix credential reference for irmatube pbdf.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Reissner committed Feb 26, 2021
1 parent e05aac0 commit a510ae4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
define('ISSUER', 'irma-demo');
define('BASE_URL', 'http://localhost');
define('IRMATUBE_NEXT_SESSION_URL', BASE_URL . '/nl/get_session_request.php');
define('IRMATUBE_CREDENTIAL', 'irma-demo.IRMATube.member');
} else {
define('ISSUER', 'pbdf');
define('BASE_URL', 'https://privacybydesign.foundation');
define('IRMATUBE_NEXT_SESSION_URL', BASE_URL . '/demo/get_session_request.php');
define('IRMATUBE_CREDENTIAL', 'pbdf.pbdf.irmatube');
}
2 changes: 1 addition & 1 deletion get_session_request.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function get_session_request($contents) {
$sessionrequest = [
'@context' => 'https://irma.app/ld/request/issuance/v2',
'credentials' => [[
'credential' => ISSUER . '.IRMATube.member',
'credential' => IRMATUBE_CREDENTIAL,
'validity' => strtotime('+6 months'),
'attributes' => [
'fullname' => $parsedjson['disclosed'][0][0]['rawvalue'],
Expand Down
2 changes: 1 addition & 1 deletion start_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
'watch_premium_contents' => [
'@context' => 'https://irma.app/ld/request/disclosure/v2',
'disclose' => [[[
ISSUER .'.IRMATube.member.fullname',
IRMATUBE_CREDENTIAL .'.fullname',
]]],
],
'presencecheck' => [
Expand Down

0 comments on commit a510ae4

Please sign in to comment.