Title: Add tests for did:nostr to WebID resolution · Issue #39 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Add tests for did:nostr to WebID resolution · Issue #39 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Add tests for did:nostr to WebID resolution · Issue #39 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary Add unit and integration tests for the did:nostr → WebID resolution feature added in v0.0.58. Test Coverage Needed Unit Tests (src/auth/did-nostr.js) resolveDidNostrToWebId() Returns null for invalid pubkey Returns null when DID ...
Open Graph Description: Summary Add unit and integration tests for the did:nostr → WebID resolution feature added in v0.0.58. Test Coverage Needed Unit Tests (src/auth/did-nostr.js) resolveDidNostrToWebId() Returns null f...
X Description: Summary Add unit and integration tests for the did:nostr → WebID resolution feature added in v0.0.58. Test Coverage Needed Unit Tests (src/auth/did-nostr.js) resolveDidNostrToWebId() Returns null f...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/39
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add tests for did:nostr to WebID resolution","articleBody":"## Summary\n\nAdd unit and integration tests for the did:nostr → WebID resolution feature added in v0.0.58.\n\n## Test Coverage Needed\n\n### Unit Tests (src/auth/did-nostr.js)\n\n- `resolveDidNostrToWebId()`\n - Returns null for invalid pubkey\n - Returns null when DID document not found (404)\n - Returns null when no alsoKnownAs in DID doc\n - Returns null when WebID doesn't link back (no bidirectional proof)\n - Returns WebID when bidirectional link exists\n - Caches results for 5 minutes\n - Handles network timeouts gracefully\n\n- `checkSameAsLink()`\n - Finds `owl:sameAs` string value\n - Finds `sameAs` string value\n - Finds `owl:sameAs` as object with `@id`\n - Finds sameAs in array\n - Case-insensitive DID matching\n\n### Integration Tests\n\n- Full flow: Nostr NIP-98 auth → DID resolution → WebID authentication\n- Mock nostr.social DID endpoint\n- Verify fallback to did:nostr when no WebID linked\n\n## Files\n\n- `test/did-nostr.test.js` (new)\n- Update `test/auth.test.js` if needed","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-03T23:27:06Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/39"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a2f6438a-586e-ab27-8f16-10ef466d28e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B54:12EFD7:10F53A3:156E189:6B0389EA |
| html-safe-nonce | a30e9c64cb82d768c41108468c708d7c71a4d352ae163dfd54ecdfeb3ff89119 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjU0OjEyRUZENzoxMEY1M0EzOjE1NkUxODk6NkIwMzg5RUEiLCJ2aXNpdG9yX2lkIjoiNjgzNjgyMzY2OTA3MTkwNzMwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c682b29d810e478d7295b8372095428552760b9bec4dd6d2ba5b4d4d88ca6e35 |
| hovercard-subject-tag | issue:3778588626 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/39/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7dd44eab34910893fdfbfda668823feadf3fd6e336f9eb8e41c3d2fd198b4bd1/JavaScriptSolidServer/JavaScriptSolidServer/issues/39 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7dd44eab34910893fdfbfda668823feadf3fd6e336f9eb8e41c3d2fd198b4bd1/JavaScriptSolidServer/JavaScriptSolidServer/issues/39 |
| og:image:alt | Summary Add unit and integration tests for the did:nostr → WebID resolution feature added in v0.0.58. Test Coverage Needed Unit Tests (src/auth/did-nostr.js) resolveDidNostrToWebId() Returns null f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width