w3c-ccg / did-method-web

DRAFT: did:web Decentralized Identifier Method Specification
https://w3c-ccg.github.io/did-method-web/
Other
32 stars 17 forks source link

Should it be possible to indicate a port with did:web? #34

Closed kdenhartog closed 3 years ago

kdenhartog commented 3 years ago

Typically in a web domain a port is a part of the host authority and indicated via a : followed by a number. However due to the way we're currently parsing a resource path we're using the : which maps to a / and changes the resource path. This leaves no way for a port to be specified with the did:web URI. Is this an expected feature or something that's just been overlooked.

@OR13 @dmitrizagidulin @dlongley @rhiaro I'd think you all may have an opinion on this.

mirceanis commented 3 years ago

I think this was already handled in #7. The conclusion was that you should use encodeUriComponent(host:port) as well as for each path component.

kdenhartog commented 3 years ago

Thanks for linking to that. Will close this one.