René's URL Explorer Experiment


Title: auth: LWS10-CID JWT verifier with ES256K (Schnorr-key dual-use, strict FPWD conformance) · Issue #397 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: auth: LWS10-CID JWT verifier with ES256K (Schnorr-key dual-use, strict FPWD conformance) · Issue #397 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: auth: LWS10-CID JWT verifier with ES256K (Schnorr-key dual-use, strict FPWD conformance) · Issue #397 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Phase 3a of #386 / concrete implementation of the #3 CID sub-bullet of #319. Goal A strict-conformant LWS 1.0 Authentication Suite: SSI via Controlled Identifiers (FPWD 2026-04-23) verifier on incoming HTTP requests, signed with ES256K (...

Open Graph Description: Phase 3a of #386 / concrete implementation of the #3 CID sub-bullet of #319. Goal A strict-conformant LWS 1.0 Authentication Suite: SSI via Controlled Identifiers (FPWD 2026-04-23) verifier on inco...

X Description: Phase 3a of #386 / concrete implementation of the #3 CID sub-bullet of #319. Goal A strict-conformant LWS 1.0 Authentication Suite: SSI via Controlled Identifiers (FPWD 2026-04-23) verifier on inco...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"auth: LWS10-CID JWT verifier with ES256K (Schnorr-key dual-use, strict FPWD conformance)","articleBody":"**Phase 3a of #386** / concrete implementation of the **#3 CID** sub-bullet of #319.\n\n## Goal\n\nA strict-conformant **[LWS 1.0 Authentication Suite: SSI via Controlled Identifiers (FPWD 2026-04-23)](https://www.w3.org/TR/2026/WD-lws10-authn-ssi-cid-20260423/)** verifier on incoming HTTP requests, signed with **ES256K** (RFC8812 — ECDSA over secp256k1, registered JWS algorithm).\n\nThe trick that makes this Nostr-native without inventing extensions: **same secp256k1 private key, two signature schemes**. Existing Nostr identities sign Schnorr/BIP-340 for Nostr; the *same* key trivially signs ECDSA for ES256K JWTs. No new key material; no Schnorr-as-JWS gymnastics.\n\n## What changes\n\nNew module `src/auth/lws-cid.js`:\n\n1. Detect LWS-CID auth: \\`Authorization: Bearer \u003cjwt>\\` where JWT header carries \\`alg: ES256K\\` (or any registered JWS alg) and \\`kid\\`.\n2. Per LWS10-CID §5: parse JWT, validate \\`sub === iss === client_id\\` (all the WebID URI), \\`exp\\` not past, \\`iat\\` recent, \\`aud\\` includes the pod origin.\n3. Dereference the WebID profile (the controlled identifier document, per CID 1.0). Locate \\`verificationMethod\\` whose \\`id\\` matches the JWT's \\`kid\\`.\n4. Decode \\`publicKeyJwk\\` (\\`kty: EC, crv: secp256k1, x, y\\`).\n5. Verify JWT signature per RFC7515 §5.2 using \\`@noble/secp256k1\\` (already in tree from NIP-98).\n6. Confirm the VM's \\`controller\\` matches the WebID (or matches the profile's declared \\`controller\\` for delegated cases).\n7. Return WebID as the authenticated identity, slot into existing auth-method preference order (#306).\n\n## Acceptance\n\n- [ ] FPWD example JWT verifies as a fixture test (\\`test/lws-cid.test.js\\`)\n- [ ] A WebID profile with a \\`JsonWebKey\\` VM (P-256 or secp256k1) accepts a correctly-signed ES256K JWT and rejects a tampered one\n- [ ] Auth middleware preference order: OIDC > LWS-CID > NIP-98 (configurable, per #306 spirit)\n- [ ] Wrong-\\`kid\\`, expired, missing-\\`aud\\` JWTs all rejected with appropriate WWW-Authenticate response\n- [ ] No regression in existing OIDC / NIP-98 paths\n\n## Pairs with doctor B.3\n\nThe client side — generating the matching profile shape and signing real JWTs — ships in **JavaScriptSolidServer/doctor#3** (now linked at JavaScriptSolidServer/doctor#3). Plan is to build them together so each side validates against real output from the other before merging.\n\n## Out of scope\n\n- LWS10-did:key (separate, simpler — VM lookup is degenerate, the kid IS the key)\n- Schnorr/BIP-340 as a custom JWS alg (non-FPWD, deferred)\n- bip340-jcs-2025 Data Integrity (different envelope; for VC signing, not HTTP auth)\n- WebAuthn passkey VMs\n\n## Refs\n\n- [LWS10-CID FPWD](https://www.w3.org/TR/2026/WD-lws10-authn-ssi-cid-20260423/)\n- [W3C Controlled Identifiers v1.0](https://www.w3.org/TR/cid-1.0/)\n- [RFC8812 — ES256K JWS algorithm](https://www.rfc-editor.org/rfc/rfc8812)\n- [CCG Multikey compromise discussion](https://github.com/w3c-ccg/community/issues/254#issuecomment-3148690444) — context for why we can later also add Schnorr-with-Multikey alongside, without breaking this path\n- #386 (overall convergence tracker)\n- #319 (broader LWS auth alignment tracker)\n- #306 (auth preference order)\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-09T08:57:17Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397"}

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:fa62a324-eca1-f26e-c8b9-be4ee9b26b56
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE614:2F9258:48B253:5BFBED:6B0389C2
html-safe-nonce6663a86e1bdc42bda2770cf3151c6fcef3fc9e6fee96d72f8eb62e1148ae581d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjE0OjJGOTI1ODo0OEIyNTM6NUJGQkVEOjZCMDM4OUMyIiwidmlzaXRvcl9pZCI6Ijc0NTg5MTA1NDYxNTU1MDYxMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2b10a5ff6baee8862add978da668c3ed7f325dd82a19305f2ba427726fe0eb37
hovercard-subject-tagissue:4411923690
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/397/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bd37e2dc5d26b7777c388aba7637712c162ff50bd26b711c6391fa3275394afd/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bd37e2dc5d26b7777c388aba7637712c162ff50bd26b711c6391fa3275394afd/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
og:image:altPhase 3a of #386 / concrete implementation of the #3 CID sub-bullet of #319. Goal A strict-conformant LWS 1.0 Authentication Suite: SSI via Controlled Identifiers (FPWD 2026-04-23) verifier on inco...
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/397#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F397
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%2F397
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/397
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
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/397
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
#398https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398
auth: LWS10-CID JWT verifier with ES256K (Schnorr-key dual-use, strict FPWD conformance)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397#top
#398https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398
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/397#issue-4411923690
#386https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/386
#3https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/3
#319https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/319
LWS 1.0 Authentication Suite: SSI via Controlled Identifiers (FPWD 2026-04-23)https://www.w3.org/TR/2026/WD-lws10-authn-ssi-cid-20260423/
Auth middleware: prefer OIDC/DPoP over NIP-98 when both are present on a request #306https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/306
Auth middleware: prefer OIDC/DPoP over NIP-98 when both are present on a request #306https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/306
JavaScriptSolidServer/doctor#3https://github.com/JavaScriptSolidServer/doctor/issues/3
JavaScriptSolidServer/doctor#3https://github.com/JavaScriptSolidServer/doctor/issues/3
LWS10-CID FPWDhttps://www.w3.org/TR/2026/WD-lws10-authn-ssi-cid-20260423/
W3C Controlled Identifiers v1.0https://www.w3.org/TR/cid-1.0/
RFC8812 — ES256K JWS algorithmhttps://www.rfc-editor.org/rfc/rfc8812
CCG Multikey compromise discussionhttps://github.com/w3c-ccg/community/issues/254#issuecomment-3148690444
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
Align JSS auth modules with LWS 1.0 Authentication Suite (FPWDs 2026-04-23) #319https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/319
Auth middleware: prefer OIDC/DPoP over NIP-98 when both are present on a request #306https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/306
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/397#event-25335623012
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#398https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398
on May 9, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397#event-25339101412
melvincarvalhohttps://github.com/melvincarvalho
on May 9, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397#event-25342590844
auth: NIP-98 → WebID via verificationMethod lookup (#399) (#400)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/b2880e6fcf41de064a61b4770f0d80ec6e1f08e0
#399https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/399
#400https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/400
b2880e6https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/b2880e6fcf41de064a61b4770f0d80ec6e1f08e0
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/397
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.