Skip to content
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

did:web Create() URL-safe encoded path parameters #91

Open
KendallWeihe opened this issue Feb 28, 2024 · 1 comment
Open

did:web Create() URL-safe encoded path parameters #91

KendallWeihe opened this issue Feb 28, 2024 · 1 comment

Comments

@KendallWeihe
Copy link
Contributor

The spec specifically describes how to handle a port in a given domain https://w3c-ccg.github.io/did-method-web/#example-creating-the-did-with-optional-path-and-port

...but what about other special characters in a path. For example, what about a space /something/with a/space/did.json?

Should all path params be percent encoded?

What about query params?


Right now our code handles the port scenario %3A but what about other special characters?

@KendallWeihe
Copy link
Contributor Author

It's unclear to me from the did:web spec if other special characters ought to be percent encoded; the port is specifically referenced in the spec (link in the description) for obvious reasons being that the colon character is in direct conflict with the DID syntax, but unclear to me if other special characters should be percent encoded.

To further confuse the matter, did:web's paths are to be delimited by a colon, but on the other hand the DID Core spec supports paths on the DID URL.

Step one in this ticket is to determine what the ruleset here is, and that may include reaching out to the did:web author's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant