-
Notifications
You must be signed in to change notification settings - Fork 13
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 : Verifier requests user to choose VCs among several types of VCs #1817
Comments
Test #5 |
So if the wallet must check if there is a "submission_requirement" attribute in the presentation definition. |
when the submission_requirement is present in a presentation_definition , all input_descriptors must be grouped. |
Other submission possible "submission_requirements": [ |
Other submission possible "submission_requirements": [ Means that user must choose a minimum of 2 VCs in group A AND user must chose 1 VC from group B |
Example , the verifier request from the user an EmailPass OR a PhoneProof.
This behavior is different from the standard behavior which is that all input_descriptors MUST be fulfilled separatly.
In all those cases which are not standard, there is json object name "submission_requirements" which is added to the presentation_definition
the presentation definition of the request will look like that :
{
"id": "9920a04d-3d24-11ee-ae7e-0a1628958560",
"input_descriptors": [
{
"id": "emailpass_5",
"group": [
"A"
],
"name": "Input descriptor for credential 5",
"constraints": {
"fields": [
{
"path": [
"$.credentialSubject.type"
],
"filter": {
"type": "string",
"pattern": "EmailPass"
}
}
]
}
},
{
"id": "phoneproof_6",
"group": [
"A"
],
"name": "Input descriptor for credential 6",
"constraints": {
"fields": [
{
"path": [
"$.credentialSubject.type"
],
"filter": {
"type": "string",
"pattern": "PhoneProof"
}
}
]
}
}
],
"name": "Test #5 DEFAULT",
"purpose": "Altme presentation definition subset of PEX v2.0",
"submission_requirements": [
{
"name": "Group A",
"rule": "pick",
"count": 1,
"from": "A"
}
],
"format": ............................
}
}
The main difference is the
"submission_requirements": [
{
"name": "Group A",
"rule": "pick",
"count": 1,
"from": "A"
}
],
The text was updated successfully, but these errors were encountered: