Skip to content

Commit

Permalink
Merge pull request #11 from privacybydesign/feature/yivitube
Browse files Browse the repository at this point in the history
get public key from the irma server itself
  • Loading branch information
saravahdatipour authored Dec 2, 2024
2 parents 717cccb + fe5d26d commit 279dfba
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion data/videos/were-the-millers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"ageRestriction": 12,
"youtubeId": "=0Vsy5KzsieQ"
"youtubeId": "0Vsy5KzsieQ"
}
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ services:
environment:
- IRMA_SERVER_URL=http://irma:8088
- ROOT_DIR=/app/data/
- IRMA_SERVER_PUBLICKEY=demo-publickey.pem
# - IRMA_SERVER_API_TOKEN=mysecrettoken
- IRMATUBE_CREDENTIAL_ID=irma-demo.IRMATube.member
volumes:
Expand All @@ -21,7 +20,7 @@ services:
build: https://github.com/privacybydesign/irmago.git
ports:
- "8088:8088"
command: server --no-tls --no-auth --jwt-privkey-file /data/demo-privkey.pem # add --url http://your--network-ip:8088 if your irma mobile app cannot talk to your localhost
command: server --no-tls --no-auth --jwt-privkey-file /data/demo-privkey.pem # add --url http://your--network-ip:8088 if your irma mobile app cannot talk to your localhost
networks:
- app-network
volumes:
Expand Down
1 change: 0 additions & 1 deletion www/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// URL and JWT public key of your IRMA server, also include your access token if enabled on your server
define('IRMA_SERVER_URL',getenv('IRMA_SERVER_URL') ?: 'http://localhost:8088');
define('IRMA_SERVER_PUBLICKEY',getenv('IRMA_SERVER_PUBLICKEY')?: 'demo-publickey.pem');
define('IRMA_SERVER_API_TOKEN', getenv('IRMA_SERVER_API_TOKEN')?: '');
define('IRMATUBE_CREDENTIAL_ID',getenv('IRMATUBE_CREDENTIAL_ID') ?: 'irma-demo.IRMATube.member');

Expand Down
3 changes: 1 addition & 2 deletions www/php/verifysession.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
exit;
}

$jwt_pk = file_get_contents(ROOT_DIR . IRMA_SERVER_PUBLICKEY);

$jwt_pk = file_get_contents(IRMA_SERVER_URL . '/publickey');
$token = $data['token'];
$videoid = $data['videoid'];

Expand Down

0 comments on commit 279dfba

Please sign in to comment.