w3c / did-resolution

RELEASED DRAFT: Decentralized Identifier Resolution (DID Resolution) 0.2 Specification
https://w3c.github.io/did-resolution/
Other
14 stars 9 forks source link

Append only the method-specific identifier in HTTP(S) binding #41

Open peacekeeper opened 4 years ago

peacekeeper commented 4 years ago

For a DID Resolver exposed at an HTTP(S) endpoint, the current thinking is that one would append the DID or DID URL to the endpoint.

E.g. if a DID Resolver is exposed at https://uniresolver.io/1.0/identifiers/ and the DID to resolve is did:example:1234, then an HTTP GET is executed against the URL https://uniresolver.io/1.0/identifiers/did:example:1234 in order to resolve the DID.

In cases where a DID Resolver supports only a single method, it may be sufficient to only append the method-specific identifier.

E.g. if a DID Resolver is exposed at https://example.resolver.com/ and the DID to resolve is did:example:1234, then an HTTP GET may be executed against the URL https://example.resolver.com/1234 in order to resolve the DID.

Discuss if this idea makes sense and if/how it should be incorporated into the spec.

dmitrizagidulin commented 4 years ago

Quick question - what's the argument against using a query parameter (instead of appending the DID to the resolver endpoint)?

peacekeeper commented 4 years ago

No argument against that, I think this would work just as well. I guess the question is how tight or how flexible we want to define the HTTP(S) binding.