Sphereon-Opensource / OID4VC-demo

Demo for OID4VC, containing a configurable agent, OID4VCI Issuer and demopage as well as SIOPv2 and OID4VP RPs with demo page
Apache License 2.0
17 stars 8 forks source link

Sphereon ssi agent not working with docker compose #104

Open Soapfedan opened 4 months ago

Soapfedan commented 4 months ago

Hi i'm trying to setup the 3 docker container, but i have a problem with the ssi agent. I launch the .sh script (./install-configs.sh sphereon http://:5000) to setup the conf files, but when i launch the container it exits with the following error: opt/oid4vc-demo/node_modules/.pnpm/@sphereon+oid4vci-issuer@0.10.4-unstable.61_msrcrypto@1.5.8/node_modules/@sphereon/oid4vci-issuer/dist/builder/VcIssuerBuilder.js:13 2024-06-10 15:47:09 throw new Error('IssuerMetadata should be from type v1_0_13 or higher.');

How can i fix this problem?

Thanks in advance

nklomp commented 4 months ago

Hi @Soapfedan

Yes, sorry for that. We are in the middle of adding new specification versions and it seems the demo has already seen merges into develop containing the new specifications, without the examples being updated. Since we have not released new versions of the wallet yet, we will be in limbo until roughly middle next week.

Sorry for that

Soapfedan commented 4 months ago

Hi @nklomp, thanks for your reply. Now i solve the problem. I checkout to the previous develop commit (951d10c2156a776b7d04f19c703445b8dad88151), where you upgraded the libraries. Now the demo works but when i scan the qr with my wallet i obtain the following error image

I already check that my phone reach the endpoint, that endpoint gives me this JWS eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDpqd2s6ZXlKaGJHY2lPaUpGVXpJMU5pSXNJblZ6WlNJNkluTnBaeUlzSW10MGVTSTZJa1ZESWl3aVkzSjJJam9pVUMweU5UWWlMQ0o0SWpvaVZFY3lTREo0TW1SWFdFNHpkVU54V25CeFJqRjVjMEZRVVZaRVNrVk9YMGd0UTAxMFltZHFZaTFPWnlJc0lua2lPaUk1VFRoT2VHUXdVRTR5TWswNWJGQkVlR1J3UkhCdlZFeDZNVFYzWm5sYVNuTTJXbWhMU1ZWS016TTRJbjAjMCIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTgxODI4MTcsImV4cCI6MTcxODE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RJam9pVkVjeVNESjRNbVJYV0U0emRVTnhXbkJ4UmpGNWMwRlFVVlpFU2tWT1gwZ3RRMDEwWW1kcVlpMU9aeUlzSW5raU9pSTVUVGhPZUdRd1VFNHlNazA1YkZCRWVHUndSSEJ2VkV4Nk1UVjNabmxhU25NMldtaExTVlZLTXpNNEluMCJ9.Kcs3S_yoRzuwypK_J3vHIpHAHunzzejS2P4LfW5f5C4SCL45nxYoIozzMciSx3UMVAjwXgoVrQIf64C0ED7UJA

What am i missing? I following the guide and i launch this command ./install-configs.sh sphereon http://192.168.231.249:5000

P.S. My colleague doesn't have the problem with his iOS wallet application

nklomp commented 4 months ago

It has to do with the current Android wallet in the store not allowing http connections and only https. If you would run the app in development mode with a USB cable ot will work. We will probably revert this for next store release as we are getting more reports of people testing against http URLs

Soapfedan commented 4 months ago

Thanks for the clarification @nklomp