Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OIDC4VP with presentation of several sd-jwt vc #2986

Open
ThierryThevenet opened this issue Oct 22, 2024 · 1 comment
Open

OIDC4VP with presentation of several sd-jwt vc #2986

ThierryThevenet opened this issue Oct 22, 2024 · 1 comment
Assignees
Labels

Comments

@ThierryThevenet
Copy link
Member

ThierryThevenet commented Oct 22, 2024

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 ThierryThevenet changed the title OIDC4VP with severla sd-jwt OIDC4VP with presentation of several sd-jwt vc Oct 22, 2024
@ThierryThevenet
Copy link
Member Author

ThierryThevenet commented Nov 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants