GithubHelp home page GithubHelp logo

Comments (7)

mrtuborg avatar mrtuborg commented on July 29, 2024 1

@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 ?

from irma_api_server.

confiks avatar confiks commented on July 29, 2024

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.

from irma_api_server.

mrtuborg avatar mrtuborg commented on July 29, 2024

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

from irma_api_server.

mrtuborg avatar mrtuborg commented on July 29, 2024

The whole error output is here:
gradle output gist on issue #28

from irma_api_server.

sietseringers avatar sietseringers commented on July 29, 2024

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

from irma_api_server.

mrtuborg avatar mrtuborg commented on July 29, 2024

@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.

from irma_api_server.

sietseringers avatar sietseringers commented on July 29, 2024

Yes, please, we'd be grateful!

from irma_api_server.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.