-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add version and request type to protocol identifier for DC API #381
Open
awoie
wants to merge
2
commits into
main
Choose a base branch
from
awoie/protocol-identifier
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1958,7 +1958,14 @@ And lastly, as part of the request, the Wallet is provided with information abou | |||||||||
|
||||||||||
## Protocol | ||||||||||
|
||||||||||
To use OpenID4VP over the DC API, the value of the exchange protocol used with the Digital Credentials API (DC API), is `openid4vp`. | ||||||||||
To use OpenID4VP with the Digital Credentials API (DC API), the exchange protocol value has the following format: `urn:openid:protocol:oid4vp:<version>:<request-type>`. The `<version>` field adheres to semantic versioning, and `<request-type>` explicitly specifies the type of request. This approach eliminates the need for wallets to perform implicit parameter matching to accurately identify the version and the expected request and response parameters. | ||||||||||
|
||||||||||
The value `1.0` MUST be used for the `<version>` field to indicate the request and response conform to this version of the specification. For `<request-type>`, unsigned requests, as defined in (#unsigned_request), MUST use `unsigned`, and signed requests, as defined in (#signed_request), MUST use `signed`. | ||||||||||
|
||||||||||
The following exchange protocol values are defined by this specification: | ||||||||||
|
||||||||||
* Unsigned requests: `urn:openid:protocol:oid4vp:1.0:unsigned` | ||||||||||
* Signed requests: `urn:openid:protocol:oid4vp:1.0:signed` | ||||||||||
Comment on lines
+1967
to
+1968
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
hlozi marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
|
||||||||||
## Request {#dc_api_request} | ||||||||||
|
||||||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are no requirements, I would use the shortest version possible, e.g.,
urn:openid4vp:1.0:signed
,urn:openid4vp:1.0:unsigned
. What do you think @c2bo @timcappalli ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with dropping "protocol" but I believe keeping the org name is common practice. If length is the concern, maybe just use "oidf"? So it would be
urn:oidf:openid4vp:1.0:signed
.@selfissued should weigh in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am happy with either one.
Adding the
oidf
seems to be a bit cleaner in terms of namespacing, but I don't think it's likely to encounter a naming clash here, so I guessurn:openid4vp:1.0:signed
would be fine as well if we need/want to optimize for size?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so there is some OIDF precedent. CIBA defines a URN-based grant type that includes both the organization and the type (in this case
params
):urn:openid:params:grant-type:ciba
. There's alsourn:openid:params:jwt:claim:auth_req_id
andurn:openid:params:jwt:claim:rt_hash
.So if we wanted to be consistent with other OIDF specs, I think we'd want it to be
urn:openid:protocol:openid4vp:1.0:signed
.@selfissued @ve7jtb any comments on this?