TalaoDAO / AltMe

Talao / Altme wallet : Open source Self Sovereign Identity wallet. Multi ecosystem support : EBSI conformant. ARF EUDI wallet implementation, DIIP and more.
https://talao.io
Apache License 2.0
48 stars 14 forks source link

OIDC4VP with presentation of several sd-jwt vc #2986

Closed ThierryThevenet closed 2 weeks ago

ThierryThevenet commented 1 month ago

if the user select several sd-jwt VC, the response of the wallet must be an array of strings (each sd-jwt as a string.

&presentation_submission=... &vp_token=["ey.....", "ey...."]

all sd jwt must be referenced in the presentation_submission

{
    "id": "two_sd_jwt",
    "input_descriptors": [
        {
            "id": "pid_credential",
            "format": {
                "vc+sd-jwt": {
                    "sd-jwt_alg_values": [
                        "ES256",
                        "ES256K",
                        "EdDSA"
                    ],
                    "kb-jwt_alg_values": [
                        "ES256",
                        "ES256K",
                        "EdDSA"
                    ]
                }
            },
            "constraints": {
                "fields": [
                    {
                        "path": [
                            "$.vct"
                        ],
                        "filter": {
                            "type": "string",
                            "const": "urn:eu.europa.ec.eudi:pid:1"
                        }
                    }
                ]
            }
        },
        {
            "id": "employee_badge_credential",
            "format": {
                "vc+sd-jwt": {
                    "sd-jwt_alg_values": [
                        "ES256",
                        "ES256K",
                        "EdDSA"
                    ],
                    "kb-jwt_alg_values": [
                        "ES256",
                        "ES256K",
                        "EdDSA"
                    ]
                }
            },
            "constraints": {
                "fields": [
                    {
                        "path": [
                            "$.vct"
                        ],
                        "filter": {
                            "type": "string",
                            "const": "urn:eu.europa.ec.eudi:employee_badge:1"
                        }
                    }
                ]
            }
        }
    ]
}
ThierryThevenet commented 2 weeks ago

Test

Get from oidc4vci get a PID and an employee badge with Test 10 and test 18

Present 2 sd-jwt with OIDC4VP Test 9

@bibash28