-
Notifications
You must be signed in to change notification settings - Fork 28
Add guidance on how to handle multiple presentation request entries #249
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
base: main
Are you sure you want to change the base?
Changes from all commits
c81fa61
f28d35f
8248f1e
21e26cd
94c8b6c
172c9ae
9e9c7df
28cb8d4
2d3c3c5
62d9a9d
603bf0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -786,6 +786,21 @@ <h3> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Details of how to actually get the [=digital credential=] are | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| forthcoming. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </aside> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <ol class="algorithm" > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <li> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <aside class="issue"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The following guidance on handling multiple requests will need to be relocated once | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this entire section of the algorithm is defined. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </aside> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| When multiple [=digital credential/presentation request | presentation requests=] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| are present in |requests|, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| a [=user agent=] MUST NOT return more than one | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A user agent can't do this regardless, because the WebIDL for a digital credential requires an object (i.e., it can't be a sequence). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Excellent! That should let us simplify the phrasing here substantially. I'll do so lower, as a revision of a previous suggestion for this block. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [=digital credential/presentation response=]. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However, multiple credentials MAY be included in this single response | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't make sense as a normative requirement, as we can't put normative requirements on formats (only on user agents). This might be useful as a non-normative note though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't read this as putting requirements on any format (which aren't mentioned here anyway) nor protocol (which are), but rather putting requirements on user agents subject to the limitations of the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| depending on the capabilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| of the corresponding [=digital credential/exchange protocol=]. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+795
to
+801
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorporating all the comments by @marcoscaceres. Too many lines changed in too many ways, so GitHub can't properly highlight the changes. I hope you have a better diff tool at hand.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </ol> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <li>Return a {{DigitalCredential}}. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -1983,6 +1998,14 @@ <h4> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| We need to describe concerns, tradeoffs and possible mitigations of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| handling multiple requests and responses for credential presentation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <p> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Verifiers may wish to define a single credential request | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| using multiple [=digital credential/exchange protocols=], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| for example to achieve maximum compatibility across [=user agent | user agents=] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| or when migrating to a newer version of a protocol. When doing so, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| verifiers SHOULD ensure that all requests are semantically equivalent to avoid confusing | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above... we can't put conformance requirements on verifiers, but we can suggest best practices in non-normative ways. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about —
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| the user, the user agent, and the wallet during processing of the request. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+2001
to
+2008
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @npdoty I added this text under a different section to try and cover your suggestion that multiple requests should be semantically similar. What do you think? |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <h4 id="multiple-user-agents"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Integrating Multiple User Agents | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </h4> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.