René's URL Explorer Experiment


Title: auth: NIP-98 → WebID via verificationMethod lookup (#399) by melvincarvalho · Pull Request #400 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: auth: NIP-98 → WebID via verificationMethod lookup (#399) by melvincarvalho · Pull Request #400 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: auth: NIP-98 → WebID via verificationMethod lookup (#399) by melvincarvalho · Pull Request #400 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Closes #399. Refs #4 (Phase 2A redirected onto CID), #386 (Phase 4 cross-protocol unification). What this changes A Nostr-signed request whose pubkey is declared in the resource owner's WebID profile (as a CID v1 verificationMethod referenced from authentication) now authenticates as the WebID instead of did:nostr:. That means: if you've used doctor B.2 to add your Nostr key to your profile, signing a NIP-98 request with that key gives you write access to your own resources via WAC, no extra ACL entries for did:nostr: needed. Lookup chain in verifyNostrAuth After the existing Schnorr signature verification: NEW: VM lookup against the resource's owner WebID profile. Match by f-form Multikey (B.2's output) or by JsonWebKey x-coord (B.3's output). VM must be in authentication. Existing did:nostr DID-document resolver (nostr.social .well-known + bidirectional alsoKnownAs check). Fall back to did:nostr:. Each layer falls through cleanly to the next on no-match / fetch-failure, so existing flows are unaffected. Pod-owner WebID derivation Inline (avoids circular import with middleware.js): Subdomain mode → uses request.podName / baseDomain Path mode on base domain → first URL path segment Single-pod deployments → request host Routed through the same validateExternalUrl SSRF guard as the LWS-CID verifier. Why this approach Smaller delta than original Phase 2A (no owl:sameAs predicate, no dedicated /idp/nostr-login endpoint, no client-side change) Reuses the K→W primitive the LWS-CID verifier already established — same VM-lookup pattern, different auth method, one mental model Lights up automatically for any user who's used doctor B.2 (Nostr Multikey) or B.3 (JsonWebKey) No regression — profiles without a matching VM still authenticate as did:nostr: Test plan Multikey VM match → returns WebID JsonWebKey VM match → returns WebID No matching key in profile → falls back to did:nostr: Matching VM but not in authentication → falls back to did:nostr: Profile fetch fails (404) → falls back to did:nostr: Invalid Schnorr signature → still rejects regardless of profile state Full suite: 685 → 691 pass, no regressions Manual smoke test against deployed solid.social pod Out of scope (separate work) Phase 2B: Nostr-first registration with auto-pod-create (still tracked in #4) Phase 3: relay discovery / NIP-97 (still tracked in #4) Profile-fetch caching (lws-cid.js has it; could be extracted into a shared helper later)

Open Graph Description: Closes #399. Refs #4 (Phase 2A redirected onto CID), #386 (Phase 4 cross-protocol unification). What this changes A Nostr-signed request whose pubkey is declared in the resource owner's WebID p...

X Description: Closes #399. Refs #4 (Phase 2A redirected onto CID), #386 (Phase 4 cross-protocol unification). What this changes A Nostr-signed request whose pubkey is declared in the resource owner's Web...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6d385bf1-cc91-37e2-5a1b-d4d6a505424d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD020:1F87:4EBF287:6317B22:6B038BE3
html-safe-noncef85f1b32b80a061bb38633b22ec8cf5c483ee5b9bfc919daac2c6fced90d6467
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDIwOjFGODc6NEVCRjI4Nzo2MzE3QjIyOjZCMDM4QkUzIiwidmlzaXRvcl9pZCI6IjY5NjU5NjAwMDQwODQxNDEwMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdcd3c10a5db71b9cafa0abc6db0f20d502ac7c2a67a4f4f160c270d2b918bd16
hovercard-subject-tagpull_request:3655164723
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
twitter:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
og:image:altCloses #399. Refs #4 (Phase 2A redirected onto CID), #386 (Phase 4 cross-protocol unification). What this changes A Nostr-signed request whose pubkey is declared in the resource owner's WebID p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F400%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F400%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
melvincarvalhohttps://github.com/melvincarvalho
gh-pageshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/gh-pages
issue-399-nostr-cid-vm-lookuphttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/issue-399-nostr-cid-vm-lookup
Conversation 53 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400
Commits 17 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits
Checks 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/checks
Files changed https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
auth: NIP-98 → WebID via verificationMethod lookup (#399) https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files#top
Show all changes 17 commits https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
43cf4ef auth: NIP-98 → WebID via verificationMethod lookup (#399) melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/43cf4eff1cdaa363d046edd4a049c2ef08f0c337
2e49248 Address copilot pass 1 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/2e49248493f407f6b29b7b5ec24d0bc842a09a02
00d88e5 Address copilot pass 2 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/00d88e58232e1383d770811fa3c54cafeee210ca
3e78096 Address copilot pass 3 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/3e780965043e9f3dcf592e97d666f90bc818264e
b1a666e Address copilot pass 4 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/b1a666ef1d8822ad587c0506902b6bc3da11643d
da13148 Address copilot pass 5 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/da13148d59203ce54c810c78d41f2b4a6dac2e70
5985b57 Address copilot pass 6 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/5985b57bf83b58ee8703e8212ba1c5c206acf72a
c28f41c Address copilot pass 7 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/c28f41c7dcda203ad94d5166f0514b5742f2fdfb
85cbd1b Address copilot pass 8 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/85cbd1b56344c8439a26b39ca8d5beb9de103e38
0da4d0d Address copilot pass 9 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/0da4d0d9815006a1b1b326e1994fdb231be6811c
958076c Address copilot pass 10 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/958076cdbb7d91e856d34f658c5bdf8fdf6bd6ec
f5dc340 Address copilot pass 11 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/f5dc3408c147fe8f1f0fe9e4a98527744db8d1a9
428ec1a Address copilot pass 12 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/428ec1ae8ed7fee5d025ae38f947c09f915d8426
e6a4eb2 Address copilot pass 13 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/e6a4eb254bff1be2fbc0039462e3e4449397cbe8
176e41d Address copilot pass 14 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/176e41d31903789514aae61055abecc4d59d3ac8
be67357 Address copilot pass 15 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/be67357949dd24f8fc3703bb668ad56694f7605a
9403835 Address copilot pass 16 on #400 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/commits/9403835766662821f8e78c53de10b4843f6fa496
Clear filters https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
cid-doc-fetch.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files#diff-e52fb81c0c45a4123a1796d4e8fe98c9a2937eef69592a709a5be13d2a252ff6
lws-cid.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files#diff-2baad457be0812b0f10b3469842944062f163214c5654dcf2dff91185cc3f1e7
nostr.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files#diff-4d21d2f5794b51604dbafc5247bdf5bbd9e81f405e51a3ead6c2d1eb83c4b382
nostr-cid-vm.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files#diff-8cea589a02ed04550549e18200d75c993ddeea32aeea17c1dc9e1358fa034e66
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L15
src/auth/cid-doc-fetch.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files#diff-e52fb81c0c45a4123a1796d4e8fe98c9a2937eef69592a709a5be13d2a252ff6
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/9403835766662821f8e78c53de10b4843f6fa496/src/auth/cid-doc-fetch.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/{{ revealButtonHref }}
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.