You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openid-4-verifiable-presentations-1_0.md
+19-5
Original file line number
Diff line number
Diff line change
@@ -669,8 +669,8 @@ unknown properties.
669
669
670
670
## Credential Query {#credential_query}
671
671
672
-
A Credential Query is an object representing a request for a presentation of one
673
-
Credential.
672
+
A Credential Query is an object representing a request for a presentation of one or more matching
673
+
Credentials.
674
674
675
675
Each entry in `credentials` MUST be an object with the following properties:
676
676
@@ -686,6 +686,9 @@ be present more than once.
686
686
Verifiable Credential. Valid Credential Format Identifier values are defined in
687
687
(#format_specific_parameters).
688
688
689
+
`multiple`:
690
+
: OPTIONAL. A boolean which indicates whether multiple Credentials can be returned for this Credential Query. If omitted, the default value is `false`.
691
+
689
692
`meta`:
690
693
: OPTIONAL. An object defining additional properties requested by the Verifier that
691
694
apply to the metadata and validity data of the Credential. The properties of
@@ -985,7 +988,7 @@ When a VP Token is returned, the respective response includes the following para
985
988
986
989
`vp_token`:
987
990
: REQUIRED. The structure of this parameter depends on the query language used to request the presentations in the Authorization Request:
988
-
* If DCQL was used, this is a JSON-encoded object; the keys are the `id`values used for the Credential Queries in the DCQL query, and the values are the Verifiable Presentations that match the respective Credential Query. The Verifiable Presentations are represented as strings or objects depending on the format as defined in (#format_specific_parameters). The same rules as above apply for encoding the Verifiable Presentations.
991
+
* If DCQL was used, this is a JSON-encoded object containing entries where: the key is the `id`value used for a Credential Query in the DCQL query; and the value is an array of one or more Verifiable Presentations that match the respective Credential Query. When `multiple` is omitted, or set to `false`, the array MUST contain only one Verifiable Presentation. There MUST NOT be any entry in the JSON-encoded object for optional Credential Queries when there are no matching Credentials for the respective Credential Query. Each Verifiable Presentation is represented as a string or object, depending on the format as defined in (#format_specific_parameters). The same rules as above apply for encoding the Verifiable Presentations.
989
992
* In case [@!DIF.PresentationExchange] was used, it is a string or JSON object that MUST contain a single Verifiable Presentation or an array of strings and JSON objects each of them containing a Verifiable Presentation. Each Verifiable Presentation MUST be represented as a string (that is a base64url-encoded value) or a JSON object depending on a format as defined in (#format_specific_parameters). When a single Verifiable Presentation is returned, the array syntax MUST NOT be used. If (#format_specific_parameters) defines a rule for encoding the respective Credential format in the Credential Response, this rules MUST also be followed when encoding Credentials of this format in the `vp_token` response parameter. Otherwise, this specification does not require any additional encoding when a Credential format is already represented as a JSON object or a string.
990
993
991
994
`presentation_submission`:
@@ -1019,7 +1022,17 @@ brevity):
1019
1022
1020
1023
```json
1021
1024
{
1022
-
"my_credential": "eyJhbGci...QMA"
1025
+
"my_credential": ["eyJhbGci...QMA"]
1026
+
}
1027
+
```
1028
+
1029
+
The following is a non-normative example of the contents of a VP Token
1030
+
containing multiple Verifiable Presentations in the SD-JWT VC format when the
1031
+
Credential Query has `multiple` set to `true` (shortened for brevity):
0 commit comments