-
Notifications
You must be signed in to change notification settings - Fork 10
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
Request service by type #85
Comments
I remember this discussion and agree with the rationale. In addition to the work you mention, discovering services by type also has been supported by certain other (historical) identifier resolution mechanisms in the past, e.g. Yadis and XRI Resolution. So I would support introducing a "serviceType" parameter in DID Resolution, either in the spec itself, or via an extension. |
This was discussed during the did meeting on 10 October 2024. View the transcriptDID Resolution Issue/PR Processingburn: Contact the chairs if anyone would suggest an improvement markus_sabadello: let's start with new issues <markus_sabadello> https://github.com/w3c/did-resolution/issues?q=is%3Aopen+is%3Aissue+label%3Apending-close markus_sabadello: first with pending close issues burn: note that, in the agenda email, we listed these issues. <TallTed> I strongly recommend such searches be ordered by "least recently updated" to keep the churn active, e.g., https://github.com/w3c/did-resolution/issues?q=is%3Aopen+is%3Aissue+label%3Apending-close+sort%3Aupdated-asc burn: the point is, we'll review these quickly today, but the expectation is that you are too look for these in the agenda and speak up or comment in the issue if you have an objection <markus_sabadello> w3c/did-resolution#57 markus_sabadello: Proposal to rename one of the resolution functions burn: any objections to closing? markus_sabadello: I'll close them after the call <markus_sabadello> w3c/did-resolution#30 markus_sabadello: Issue 30, several years old. Has to do with dereferencing discussion at TPAC <markus_sabadello> w3c/did-resolution#29 markus_sabadello: also several years old, about the definition of the term did resolver. <markus_sabadello> w3c/did-resolution#21 markus_sabadello: Issue 21 about removing the term DID Reference from DID core to DID Resolution. <markus_sabadello> w3c/did-resolution#11 markus_sabadello: All methods must have a name of at least three characters. decentralgabe: If we mark it pending close and give it a week, that would address the older participants burn: requirements vary from group to group. In past groups, we've made the point to actively reach out by email and ask for engagement. Then you can comment that in the issue. burn: you have 10 more minutes if you like <markus_sabadello> https://github.com/w3c/did-resolution/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 markus_sabadello: one other thing. A few issues are tagged as "Good First Issue" <markus_sabadello> w3c/did-resolution#23 markus_sabadello: Issue 23 is about result of dereferencing <manu> JoeAndrieu: Looking at the backlog. There is an opportunity here to make a distinction -- how we talk about a DID with and without a trailing slash... but I don't know if that helps us. I need to look at this in more detail, it's five years old, we can close it, if problem still exists, we can raise a new issue again. <manu> markus_sabadello: I think this might be obsolete by now? <manu> JoeAndrieu: Yeah, sounds like it might be. <manu> markus_sabadello: We will have until next call to look at it or raise a new issue if this comes back. <manu> JoeAndrieu: Sounds good to me. manu: I'm wondering what is the ... I'm fine with closing it. I'm wondering where did we land? markus_sabadello: that's right the resolution response might contain a did document, but dereferencing might return something else manu: i think it's already addressed (as opposed to an older issue that isn't valid) markus_sabadello: this was from when we didn't have a did resolution result, we were just returning DID documents <JoeAndrieu> +1 manu: +1 markus_sabadello: also to be aware of, from discussions at TPAC, when we talked about path, query, and fragment parts. <markus_sabadello> w3c/did-resolution#85 markus_sabadello: There are two open issues for new DID parameters with certain functionality <markus_sabadello> w3c/did-resolution#90 markus_sabadello: The first introduces version-type the second XYZ as parameters burn: ok, you have about another 5 minutes if you'd like markus_sabadello: ok. I'm wondering if we can merge that pull request <markus_sabadello> w3c/did-resolution#89 markus_sabadello: or if anyone has new thoughts about the discussion we had about primary resource and secondary resource manu: I think it is unfortunate that the initial wording was primary and secondary resource, as that is so abstract it is confusing. <TallTed> +1 to manu's suggestion manu: maybe we can call it derereferencing a DID? or a #fragment markus_sabadello: there is something that right now is called a primary resource. manu: yes. that was my thinking. Name the types of things you can dereference. markus_sabadello: this needs to be extensible. we can't imaging all the things they dereference to. <manu> JoeAndrieu: I would like to try my hand at writing this PR, don't know when I'm going to get to it, but want to help. |
I also support a "serviceType" parameter for DID resolution. I think it is both useful and broad enough to be worth including in this spec. DID Core defines services and all services must have a type. |
I have looked through the issues and can't find one to match this - sincere apologies if I've missed it and this is a duplicate.
In section 4.1.1 there's a note that points to a 5 year old email from @dlongley raising the possibility of a DID resolver returning info about a service identified by type rather than by ID. @ChristopherA was not supportive!
However, we use exactly this kind of request in a GS1-Conformant resolver. That is, you can request a particular type of associated resource. We use link relation types for this and have a simple parameter of
linkType
so that https://id.gs1.org/01/09506000164908?linkType=gs1:certificationInfo redirects to a resource that, in this case, gives you a load of certificates related to the product identified by the GTIN 9506000164908. https://id.gs1.org/01/09506000164908?linkType=gs1:sustainabilityInfo redirects to the recycling info and so on. (thegs1
prefix refers to our namespace. The set of link types we define is managed under our standards process).This is done by leveraging the Linkset, as defined by RFC9264 and you can get the whole linkset with
curl -H "Accept: application/linkset+json" https://id.gs1.org/01/09506000164908
.What happens if you have multiple target resources of the same type? Step forward HTTP Response code 300 :-) We've implemented this in the open source version of the resolver but it's not in the production service yet so don't go trying it.
I'm not suggesting a wholesale adoption of this approach in DID Resolution, merely pointing out that requesting a resource by type is useful and has been thought about and engineered in a nearby context. If there is support within the WG for identifying service endpoints by type, the basic approach might be useful.
No one here will care but the use of RFC9264 and the
linkType
parameter to control resolver behavior is included in ISO/IEC 18975, currently at FDIS stage (Final Draft International Standard) which means that, unless something goes horribly wrong, it will be an ISO/IEC standard before the end of the year. Of more importance here is that it's cited multiple times in the UN Transparency Protocol work being led by Steve Capell. What that work calls an Identity Resolver, or, informally, a link resolver, has this kind of thing in mind.The text was updated successfully, but these errors were encountered: