Skip to content

The wallet should respect the DCQL multiple parameter #315

@psteniusubi

Description

@psteniusubi

If a presentation request matches claims across multiple credentials, the wallet lets me present multiple credentials even if the DCQL multiple parameter is not true.

See OpenID4VP DCQL multiple parameter

Steps to reproduce

  1. Go to https://issuer.eudiw.dev/ and issue multiple credentials of the same type into your wallet (PID credentials for example)
  2. Go to https://verifier.eudiw.dev/ and create a simple credential query (observe the DCQL query by default has no multiple parameter)
  3. The wallet presents an UI where it lets the user select claims from multiple credentials (see below)
  4. Observe there are multiple credentials in the response on https://verifier.eudiw.dev/ (see below)

DCQL query:

{
  "dcql_query": {
    "credentials": [
      {
        "id": "query_0",
        "format": "dc+sd-jwt",
        "meta": {
          "vct_values": [
            "urn:eudi:pid:1"
          ]
        },
        "claims": [
          {
            "path": [
              "family_name"
            ]
          },
          {
            "path": [
              "given_name"
            ]
          }
        ]
      }
    ]
  },
  "nonce": "f3278647-32ce-40f2-88b3-50485e32011f",
  "request_uri_method": "get",
  "profile": "haip",
  "authorization_request_uri": "haip-vp://"
}

Wallet UI:

Image

Decoded response:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions