Skip to content

Optional paths for did:web not supported

The readDIDfromURI-method does not comply with the w3c definition regarding how optional paths should be resolved. A DID.json-file is not required to be in .../.well-known/... and can be placed in different locations defined by optional paths.

The readDIDfromURI-method assumes that all DID.json-files are placed in <base-url>/.well-known/did.json, e.g.: did:web:w3c-ccg.github.io:user:alice resolves to "https://w3c-ccg.github.io/.well-known/did.json" and does not point towards the DID.json behind the optional path. The expected and correctly resolved URL would be: "https://w3c-ccg.github.io/user/alice/did.json". (see Example 5)

It would be much appreciated if the support for optional paths were implemented.