Closed mrtuborg closed 6 years ago
Hi! Are the scheme managers in the irma_configuration
folder correctly checked out and in the right location (src/main/resources/irma_configration
by default)? It seems to be an error while traversing those files. The relevant code for the traversing is in irma_api_common
, another repository in this organization.
You could try to use this script to setup a development environment (with a keyshare server as well, which you probably don't need): https://gist.github.com/confiks/ab7ae1802d2b64dc20659c0addcc5613
If there's anything else, please let us know.
According README, I have created directory:
irma_api_server [tags/v1.4.2] % ls -lah src/main/resources/irma_configuration
totalt 4,0K
drwxrwxr-x 3 user user 23 sep. 29 13:59 .
drwxrwxr-x 3 user user 140 sep. 29 13:59 ..
drwxrwxr-x 16 user user 4,0K sep. 29 13:59 irma-demo
Where irma-demo was created by another tip in README:
irma_api_server [tags/v1.4.2] % cd src/main/resources/irma_configuration/irma-demo
irma-demo [master] % grv
origin https://github.com/privacybydesign/irma-demo-schememanager (fetch)
origin https://github.com/privacybydesign/irma-demo-schememanager (push)
irma-demo [master] %
My configuration file:
irma-demo [master] % cat /etc/irma_api_server/config.json
{
// Configuration file for unit tests, not used for anything else
"enable_verification": true,
"enable_issuing": true,
"enable_signing": true,
"allow_unsigned_issue_requests": false,
"allow_unsigned_verification_requests": true,
"allow_unsigned_signature_requests": true,
"authorized_idps": {
"testip": [ "irma-demo.MijnOverheid.ageLower" ]
},
"authorized_sps": {
"testsp": [ "irma-demo.*" ]
},
"authorized_sigclients": {
"testsigclient": [ "irma-demo.*" ]
}
}
irma-demo [master] %
Thanks for the script, looks like a missing chain in documentation, it is very helpful to understand this.
I will look on the script in parallel while investigating issue with gradle appRun
The whole error output is here: gradle output gist on issue #28
The problem still seems to be that it can't find any schemes in the irma_configuration
folder it is looking at.
You mention /etc/irma_api_server/config.json
and src/main/resources/irma_configuration
- but the server always looks for config.json
and the irma_configuration
folder (and in fact all other configuration files as well) in the same place. The IRMA_API_CONF
environment variable can be used to instruct the server to look for (all) its configuration in a place of your choosing (such as /etc/irma_api_server
). So if you're using IRMA_API_CONF
in order to point the server to /etc/irma_api_server
, then you should put your irma_configuration
folder there as well. If not, config.json
should also be in src/main/resources
@sietseringers Thanks for your help.
I have just tried to put config.json
and irma_configuration
in one place:
irma_api_server [tags/v1.4.2] % ls -1 src/main/resources
config.json
config.sample-demo.json
config.sample.json
irma_configuration
logback.xml
README
It still does not work. The same error. But script from @confiks (after a little bit of polishing to linux world) works fine.
So, I am going to dig in to outcome from the script and publish solution here.
@sietseringers You was right. I just was needed to clean the build and apply your suggestions. Now everything works.
Can I create PR and update README.md for IRMA_API_CONF usage ?
Yes, please, we'd be grateful!
Hello,
I am trying to follow Readme for building irma_api_server and getting following error: