René's URL Explorer Experiment


Title: auth: NIP-98 verifier upgrades did:nostr → WebID via verificationMethod lookup (#4 Phase 2A via CID) · Issue #399 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: auth: NIP-98 verifier upgrades did:nostr → WebID via verificationMethod lookup (#4 Phase 2A via CID) · Issue #399 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: auth: NIP-98 verifier upgrades did:nostr → WebID via verificationMethod lookup (#4 Phase 2A via CID) · Issue #399 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Phase 2A of #4 ("Add did:nostr SSO and Schnorr (NIP-98) authentication"), redirected onto the CID-document substrate that #386 + #397 just landed. Problem Today's NIP-98 path (src/auth/nostr.js) authenticates a request as did:nostr:

Open Graph Description: Phase 2A of #4 ("Add did:nostr SSO and Schnorr (NIP-98) authentication"), redirected onto the CID-document substrate that #386 + #397 just landed. Problem Today's NIP-98 path (src/auth/nostr.js) au...

X Description: Phase 2A of #4 ("Add did:nostr SSO and Schnorr (NIP-98) authentication"), redirected onto the CID-document substrate that #386 + #397 just landed. Problem Today's NIP-98 path (src/aut...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"auth: NIP-98 verifier upgrades did:nostr → WebID via verificationMethod lookup (#4 Phase 2A via CID)","articleBody":"**Phase 2A of #4** (\"Add did:nostr SSO and Schnorr (NIP-98) authentication\"), redirected onto the CID-document substrate that #386 + #397 just landed.\n\n## Problem\n\nToday's NIP-98 path (`src/auth/nostr.js`) authenticates a request as `did:nostr:\u003cpubkey>`. WAC then operates on that DID-shaped identity — useful for direct-did:nostr-in-ACL, but it doesn't give the user **their WebID** as the authenticated identity, so writes to their own profile fail unless ACLs explicitly grant `did:nostr:`.\n\n#4's original Phase 2A solved this with `owl:sameAs` linking in the profile + a dedicated SSO endpoint. With the verificationMethod / authentication infrastructure now in place (#386 + #397/#398), there's a smaller, more uniform alternative: **the same K→W lookup the LWS-CID verifier already does**.\n\n## Proposed change\n\nAugment `verifyNostrAuth` so that, on a successful Schnorr verification:\n\n1. Compute the resource WebID (from the request's pod / WebID URL — same logic the WAC layer already uses).\n2. Fetch that WebID's profile.\n3. Look for a `verificationMethod` whose `publicKeyMultibase` decodes to the same Nostr pubkey we just verified, **and** whose VM id is referenced by `authentication`.\n4. If found → return the WebID as the authenticated identity (instead of `did:nostr:`).\n5. If not found → return `did:nostr:\u003cpubkey>` as today (no behaviour regression).\n\nDecode of the f-form Multikey is straightforward — strip `f` prefix, strip `e701` multicodec, strip parity byte, take the remaining 32-byte x-only hex. The doctor's `B.2` (already shipped) emits exactly this shape.\n\n## Acceptance\n\n- [ ] A WebID profile that declares a Nostr Multikey VM in `authentication` accepts NIP-98 requests as **the WebID** (not `did:nostr:`)\n- [ ] WAC writes to the user's own resources (e.g. their profile) succeed under NIP-98 with no extra ACL entries\n- [ ] Profiles WITHOUT a matching VM continue to authenticate as `did:nostr:\u003cpubkey>` (no behaviour change for #4 Phase 1)\n- [ ] Profile fetch goes through the same SSRF guard / cache as the LWS-CID verifier\n- [ ] No regression in existing did:nostr ACL paths or in the existing DID-document resolver in `did-nostr.js`\n\n## Why this and not the original Phase 2A design\n\nThe original design was independent of CID: link via `owl:sameAs`, build a dedicated SSO endpoint. With CID v1 + LWS10-CID now load-bearing for keys-in-profiles, going through the same VM mechanism:\n\n- Reuses the K→W primitive across NIP-98, LWS-CID, did:key, WebAuthn (#386 Phase 4 in spirit)\n- Keeps the auth-method preference order (#306) operating on a single concept: \"look up the credential's signing key in a VM list\"\n- Means anyone who's already used doctor B.2 to add a Nostr VM gets WebID-based NIP-98 auth automatically when this lands\n\n## Out of scope\n\n- Phase 2B (Nostr-first registration with auto-pod-create) — orthogonal\n- Phase 3 (relay discovery / NIP-97) — orthogonal\n- The dedicated `/idp/nostr-login` endpoint — separate, can be layered on top later\n- The CCG f-form vs z-form Multikey debate — already settled at f-form per [w3c-ccg/community#254](https://github.com/w3c-ccg/community/issues/254#issuecomment-3148690444); this issue assumes f-form\n\n## Refs\n\n- #4 — original Phase 2 design (owl:sameAs based)\n- #386 — convergence tracker; this is part of Phase 4 (cross-protocol unification)\n- #397 / #398 — LWS-CID verifier (the VM-lookup pattern this would mirror)\n- #306 — auth-method preference order (will continue to apply)\n- #42 — did:nostr → WebID spec (the existing DID-doc resolver stays)","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-09T15:11:51Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1322af67-92e0-da31-3b25-607b93ceaf55
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC588:14F885:C9CE57:1013B0A:6B0387F0
html-safe-nonce10eaadc28445fcbeb8dd895edc51a93be35fef6fd2488ecce456f0d6c2430e67
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTg4OjE0Rjg4NTpDOUNFNTc6MTAxM0IwQTo2QjAzODdGMCIsInZpc2l0b3JfaWQiOiI3NDgzODM5MDYwMzI3NDk5NzYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4ed5b824abeaecef351d6ec78bb4f47f25b25a40b4bcd74ee2652c10cdb2a619
hovercard-subject-tagissue:4412903092
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/399/issue_layout
twitter:imagehttps://opengraph.githubassets.com/05d589739a2c4fc83d3de7cb0aa169283a0ab1560ae3773fc2258ecffd5eb146/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/05d589739a2c4fc83d3de7cb0aa169283a0ab1560ae3773fc2258ecffd5eb146/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
og:image:altPhase 2A of #4 ("Add did:nostr SSO and Schnorr (NIP-98) authentication"), redirected onto the CID-document substrate that #386 + #397 just landed. Problem Today's NIP-98 path (src/auth/nostr.js) au...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F399
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%2Fissues%2F399
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
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
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
#400https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400
auth: NIP-98 verifier upgrades did:nostr → WebID via verificationMethod lookup (#4 Phase 2A via CID)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399#top
#400https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
nostrNostr relay, did:nostr auth, NIP-relatedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22nostr%22
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on May 9, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399#issue-4412903092
#4https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/4
#386https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/386
#397https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
#4https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/4
#386https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/386
#397https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
#398https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398
Add did:nostr SSO and Schnorr (NIP-98) authentication #4https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/4
Profile-to-key linking aligned with LWS 1.0 (FPWDs 2026-04-23) via W3C Controlled Identifiers v1.0 #386https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/386
Auth middleware: prefer OIDC/DPoP over NIP-98 when both are present on a request #306https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/306
w3c-ccg/community#254https://github.com/w3c-ccg/community/issues/254#issuecomment-3148690444
Add did:nostr SSO and Schnorr (NIP-98) authentication #4https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/4
Profile-to-key linking aligned with LWS 1.0 (FPWDs 2026-04-23) via W3C Controlled Identifiers v1.0 #386https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/386
auth: LWS10-CID JWT verifier with ES256K (Schnorr-key dual-use, strict FPWD conformance) #397https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
auth: LWS10-CID JWT verifier with ES256K (#397) #398https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398
Auth middleware: prefer OIDC/DPoP over NIP-98 when both are present on a request #306https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/306
Spec: did:nostr to WebID Resolution #42https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/42
melvincarvalhohttps://github.com/melvincarvalho
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
nostrNostr relay, did:nostr auth, NIP-relatedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22nostr%22
on May 9, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399#event-25340028519
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#400https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400
on May 9, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399#event-25342590800
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
nostrNostr relay, did:nostr auth, NIP-relatedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22nostr%22
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.