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
+28-39
Original file line number
Diff line number
Diff line change
@@ -613,15 +613,15 @@ Presentations that match the query.
613
613
A valid VP Query is defined as a JSON-encoded object with the following
614
614
top-level properties:
615
615
616
-
`expect_credentials`:
616
+
`credentials`:
617
617
: REQUIRED. A non-empty array of Credential Queries as defined in (#credential_query)
618
618
that specify the requested Verifiable Credentials.
619
619
620
-
`valid_credential_sets`:
620
+
`credential_sets`:
621
621
: OPTIONAL. A non-empty array containing arrays of identifiers for Credential Queries defined in
622
-
`expect_credentials` that defines which sets of Credentials may be returned.
622
+
`credentials` that defines which sets of Credentials may be returned.
623
623
The identifier MAY be postfixed by `?`, indicating that
624
-
delivery of the the respective Credential is optional. For details, see
624
+
delivery of the respective Credential is optional. For details, see
625
625
(#vp_query_lang_processing_rules).
626
626
627
627
Note: While this specification does not define additional top-level properties,
@@ -637,39 +637,38 @@ It contains the following properties:
637
637
638
638
`id`:
639
639
: REQUIRED. A string identifying the Credential in the response and, if provided,
640
-
the constraints in `valid_credential_sets`. The value MUST be a non-empty string
640
+
the constraints in `credential_sets`. The value MUST be a non-empty string
641
641
consisting of alphanumeric, underscore (`_`) or hyphen (`-`) characters.
642
642
Within the Authorization Request, the same `id` MUST NOT
643
643
be present more than once.
644
644
645
645
`format`:
646
646
: REQUIRED. A string that specifies the format of the requested
647
647
Verifiable Credential. Valid Credential Format Identifier values are defined in
648
-
Appendix A of [@!OpenID.VCI]. The value of this property MUST be one of the
649
-
supported Credential Formats as defined in the Wallet's metadata.
648
+
Appendix A of [@!OpenID.VCI].
650
649
651
-
`expect_meta`:
650
+
`meta`:
652
651
: OPTIONAL. An object defining additional properties requested by the Verifier that
653
652
apply to the metadata and validity data of the Credential. The properties of
654
653
this object are defined per Credential Format in (#format_specific_properties). If omitted,
655
654
no specific constraints are placed on the metadata or validity of the requested
656
655
Credential.
657
656
658
-
`expect_claims`:
657
+
`claims`:
659
658
: OPTIONAL. A non-empty array of objects as defined in (#claims_query) that specifies
660
659
claims in the requested Credentials.
661
660
662
-
`valid_claim_sets`:
661
+
`claim_sets`:
663
662
: OPTIONAL. A non-empty array containing arrays of identifiers for elements in
664
-
`expect_claims`. The identifier MAY be postfixed by `?`, indicating that
663
+
`claims`. The identifier MAY be postfixed by `?`, indicating that
665
664
delivery of the the respective claim is OPTIONAL.
666
665
667
666
## Claims Query {#claims_query}
668
667
669
-
Each entry in `expect_claims` MUST be an object with the following properties:
668
+
Each entry in `claims` MUST be an object with the following properties:
670
669
671
670
`id`:
672
-
: REQUIRED if `valid_claim_sets` is present; OPTIONAL otherwise. A string
671
+
: REQUIRED if `claim_sets` is present; OPTIONAL otherwise. A string
673
672
identifying the particular claim. The value MUST be a non-empty string
674
673
consisting of alphanumeric, underscore (`_`) or hyphen (`-`) characters.
675
674
Within the particular `expected_claims` array, the same `id` MUST NOT
@@ -693,42 +692,42 @@ in the Verifiable Credential, e.g., `first_name`.
693
692
`value`:
694
693
: OPTIONAL. A string, integer or boolean value that specifies the expected value of the claim. If the
695
694
`value` property is present, the Wallet MUST return the claim only if the type and value
696
-
of the claim match the type and value specified in the query.
695
+
of the claim match the type and value specified in the query. This property MUST NOT be present if the `values` property is present.
697
696
698
697
`values`:
699
698
: OPTIONAL. An array of strings, integers or boolean values that specifies the expected values of the claim.
700
699
If the `values` property is present, the Wallet MUST return the claim only if the
701
-
type and value of the claim both match for at least one of the elements in the array.
700
+
type and value of the claim both match for at least one of the elements in the array. This property MUST NOT be present if the `value` property is present.
702
701
703
702
### Selecting Claims and Credentials {#vp_query_lang_processing_rules}
704
703
705
704
The same basic logic applies for selecting claims and for selecting credentials, as detailed in the following.
706
705
707
706
#### Selecting Claims
708
707
709
-
The following rules apply for selecting claims via `expect_claims` and `valid_claim_sets`:
708
+
The following rules apply for selecting claims via `claims` and `claim_sets`:
710
709
711
-
- If `expect_claims` is not provided, the Verifier requests all claims existing
710
+
- If `claims` is not provided, the Verifier requests all claims existing
712
711
in the Credential.
713
-
- If `expect_claims` is provided, but `valid_claim_sets` is not provided,
714
-
the Verifier requests all claims listed in `expect_claims`.
712
+
- If `claims` is provided, but `claim_sets` is not provided,
713
+
the Verifier requests all claims listed in `claims`.
715
714
- Otherwise, the Verifier requests one combination of the claims listed in
716
-
`valid_claim_sets`, with optional claims marked by the postfix `?`.
715
+
`claim_sets`, with optional claims marked by the postfix `?`.
717
716
718
717
If the Wallet cannot deliver all non-optional claims requested by the Verifier according to these rules, it MUST NOT
719
718
return the respective Credential.
720
719
721
720
#### Selecting Credentials
722
721
723
-
The following rules apply for selecting Credentials via `expect_credentials` and `valid_credential_sets`:
722
+
The following rules apply for selecting Credentials via `credentials` and `credential_sets`:
724
723
725
-
- If `valid_credential_sets` is not provided, the Verifier requests all
726
-
Credentials in `expect_credentials` to be returned.
724
+
- If `credential_sets` is not provided, the Verifier requests all
725
+
Credentials in `credentials` to be returned.
727
726
- Otherwise, the Verifier requests one combination of the Credentials
728
-
listed in `valid_credential_sets`, with optional credentials marked by the postfix `?`.
727
+
listed in `credential_sets`, with optional credentials marked by the postfix `?`.
729
728
730
729
Credentials not matching the respective constraints expressed within
731
-
`expect_credentials` MUST NOT be returned, i.e., they are treated as if
730
+
`credentials` MUST NOT be returned, i.e., they are treated as if
732
731
they would not exist in the Wallet.
733
732
734
733
If the Wallet cannot deliver all non-optional Credentials requested by the Verifier according to these rules, it MUST NOT
@@ -748,22 +747,12 @@ be valid type identifiers as defined in [@!I-D.ietf-oauth-sd-jwt-vc]. The Wallet
748
747
MAY return credentials that inherit from any of the specified types, following
749
748
the inheritance logic defined in [@!I-D.ietf-oauth-sd-jwt-vc].
750
749
751
-
`credential_signing_alg_values`:
752
-
: OPTIONAL. An array of strings that specifies
753
-
the allowed algorithms for signing the SD-JWT (i.e., only the issuer-signed part).
754
-
755
-
`kbjwt_signing_alg_values`:
756
-
: OPTIONAL. An array of strings that specifies the
757
-
allowed algorithms for signing the Key-Binding JWT (KB-JWT) (i.e., the part signed
758
-
by the holder).
759
-
760
-
`sd_alg_values`:
761
-
: OPTIONAL. An array of strings that specifies the allowed hash algorithms for
762
-
digests in the SD-JWT and KB-JWT.
763
-
764
750
### Format `mso_mdoc` {#format_mso_mdoc}
765
751
766
-
TBD
752
+
`doctype_values`:
753
+
: OPTIONAL. An array of strings that specifies allowed values for the
754
+
doctype of the requested Verifiable Credential. All elements in the array MUST
755
+
be valid doctype identifiers as defined in ISO 18013-5.
0 commit comments