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

Detect JSON DID Resolution Result #372

Merged
merged 3 commits into from
Jan 24, 2022
Merged

Detect JSON DID Resolution Result #372

merged 3 commits into from
Jan 24, 2022

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Jan 7, 2022

DID Resolution Result has a media type defined in CCG's DID Resolution specification draft, that is a JSON-LD media type with a profile parameter equal to the DID Resolution namespace: https://w3c-ccg.github.io/did-resolution/#did-resolution-result

ssi's HTTP DID resolution client implementation currently depends on this media type being set in a HTTP response.

However, at least one server implementation at this point does not set that specific media type on the response: ion's implementation uses application/json.
This PR enables using ssi with DIF's ion implementation's DID resolver endpoint. There's also a PR on ion to set the more specific media type: decentralized-identity/ion#244.

Similar handling for dereference is not added as there is no need for it currently.

@clehner clehner marked this pull request as ready for review January 7, 2022 17:51
@clehner clehner requested a review from sbihel January 24, 2022 14:33
@clehner clehner merged commit 0d50fc8 into main Jan 24, 2022
@clehner clehner deleted the feat/did-res-parse branch January 24, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants