-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Overview:
In attempting to use the OID4VC-demo for VC issuance and presentation with the Sphereon wallet, I've hit two major roadblocks:
- Failure in VC issuance through the wallet("Use your wallet option")
- Errors in VC presentation for authentication.
Here are details of the two issues.
Issues Encountered:
Issue 1: Error During VC Issuance with Wallet (SIOP) Option
Steps to Reproduce:
Initiated the agent, frontend-vci, and frontend-vp containers as per the provided instructions.
Attempted VC issuance using the "Use your wallet" option on the credential issuer interface.
Expected Behavior:
Smooth integration and interaction between the Sphereon wallet and the OID4VC-demo to issue the VC.
Actual Behavior:
Error seen on Sphereon wallet:
Unable to present credentials: Error: Error 500: {"error": "Could not verify auth status"}.
Error seen on Agent container(oid4vc-demo-ssi-agent):
2024-02-18 17:35:38 Authorization Response (siop-sessions 2024-02-18 17:35:38 { 2024-02-18 17:35:38 "expires_in": "300", 2024-02-18 17:35:38 "state": "034a3a98-89a6-4e66-8cac-166e7c113571", 2024-02-18 17:35:38 "presentation_submission": "{\"id\":\"l5QeJMoMqFTnQCjy5O85g\",\"definition_id\":\"sphereonWalletIdentity\",\"descriptor_map\":[{\"id\":\"ace7aff1-0234-4f35-9d21-251668a60950\",\"format\":\"jwt_vc\",\"path\":\"$.verifiableCredential[0]\"}]}", 2024-02-18 17:35:38 "vp_token": "..." 2024-02-18 17:35:38 } 2024-02-18 17:35:38 Supplied presentation_submission was a string instead of JSON. Correctig, but external party should fix their implementation! 2024-02-18 17:35:38 URI: {"expires_in":"300","state":"034a3a98-89a6-4e66-8cac-166e7c113571","presentation_submission":{"id":"l5QeJMoMqFTnQCjy5O85g","definition_id":"sphereonWalletIdentity","descriptor_map":[{"id":"ace7aff1-0234-4f35-9d21-251668a60950","format":"jwt_vc","path":"$.verifiableCredential[0]"}]},"vp_token":"..."} 2024-02-18 17:35:38 TypeError: Cannot read properties of undefined (reading 'payload') 2024-02-18 17:35:38 at AuthorizationResponse.<anonymous> (/opt/oid4vc-demo/node_modules/.pnpm/@sphereon+did-auth-siop@0.6.0-unstable.3/node_modules/@sphereon/did-auth-siop/dist/authorization-response/AuthorizationResponse.js:116:102) 2024-02-18 17:35:38 at Generator.next (<anonymous>) 2024-02-18 17:35:38 at fulfilled (/opt/oid4vc-demo/node_modules/.pnpm/@sphereon+did-auth-siop@0.6.0-unstable.3/node_modules/@sphereon/did-auth-siop/dist/authorization-response/AuthorizationResponse.js:5:58) 2024-02-18 17:35:38 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-02-18 17:35:38 sendErrorResponse (500): Could not verify auth status 2024-02-18 17:35:38 error message: Cannot read properties of undefined (reading 'payload') 2024-02-18 17:35:38 error object: {} 2024-02-18 17:35:38 Original error stack (if any) and REST API error stack: 2024-02-18 17:35:38 TypeError: Cannot read properties of undefined (reading 'payload') 2024-02-18 17:35:38 at AuthorizationResponse.<anonymous> (/opt/oid4vc-demo/node_modules/.pnpm/@sphereon+did-auth-siop@0.6.0-unstable.3/node_modules/@sphereon/did-auth-siop/dist/authorization-response/AuthorizationResponse.js:116:102) 2024-02-18 17:35:38 at Generator.next (<anonymous>) 2024-02-18 17:35:38 at fulfilled (/opt/oid4vc-demo/node_modules/.pnpm/@sphereon+did-auth-siop@0.6.0-unstable.3/node_modules/@sphereon/did-auth-siop/dist/authorization-response/AuthorizationResponse.js:5:58) 2024-02-18 17:35:38 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-02-18 17:35:38 Error 2024-02-18 17:35:38 at sendErrorResponse (/opt/oid4vc-demo/node_modules/.pnpm/@sphereon+ssi-express-support@0.18.2-unstable.25_@noble+hashes@1.3.3_passport-http-bearer@1.0.1/node_modules/@sphereon/ssi-express-support/dist/express-utils.js:23:23) 2024-02-18 17:35:38 at /opt/oid4vc-demo/node_modules/.pnpm/@sphereon+ssi-sdk.siopv2-oid4vp-rp-rest-api@0.18.2-unstable.25_expo-crypto@12.8.0_expo@50.0.2_ny4ssxtrad5zz6thktcyxgrcgm/node_modules/@sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-api/dist/siop-api-functions.js:72:64 2024-02-18 17:35:38 at Generator.throw (<anonymous>) 2024-02-18 17:35:38 at rejected (/opt/oid4vc-demo/node_modules/.pnpm/@sphereon+ssi-sdk.siopv2-oid4vp-rp-rest-api@0.18.2-unstable.25_expo-crypto@12.8.0_expo@50.0.2_ny4ssxtrad5zz6thktcyxgrcgm/node_modules/@sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-api/dist/siop-api-functions.js:6:65) 2024-02-18 17:35:38 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-02-18 17:35:38 POST /siop/definitions/sphereonWalletIdentity/auth-responses/4db5e562-1af4-45de-910c-1481b3eb9f43 500 38.958 ms - 40
Issue 2: VC Presentation Demo Compatibility and Error
Steps to Reproduce:
Stored VCs issued from the OID4VC-demo's issuer page (localhost:5001) in the Sphereon wallet.
Attempted to authenticate by presenting a VC at the verifier demo (localhost:5002) through the Sphereon wallet.
Expected Behavior:
On presenting the appropriate VC, the expectation was to authenticate and sign in seamlessly within the demo environment, utilizing the VCs issued by the localhost issuer.
Actual Behavior:
The Sphereon wallet did not list the VCs issued by the localhost issuer as compatible for presentation, leading to a failure in authentication.
Resorting to using a VC issued from "https://ssi.sphereon.com/demo/issuer/#/credentials/select" for presentation, which ideally should not be necessary, resulted in the following error on localhost:5002 webpage:
Uncaught runtime errors: ERROR Cannot read properties of undefined (reading 'payload') at handleError (http://localhost:5002/static/js/bundle.js:79723:58) at http://localhost:5002/static/js/bundle.js:79746:7
This unexpected behavior suggests a missing link in the VC compatibility or support within the OID4VC-demo, particularly with the VCs issued by its own issuer demo.
Request for Support:
Facing challenges with VC issuance and presentation in the OID4VC-demo, I'm seeking assistance to resolve these critical issues. Any support or guidance to overcome these hurdles would be greatly appreciated.
Please let me know if you need further details or logs to facilitate troubleshooting.