René's URL Explorer Experiment


Title: auth: LWS10-CID JWT verifier with ES256K (#397) by melvincarvalho · Pull Request #398 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: auth: LWS10-CID JWT verifier with ES256K (#397) by melvincarvalho · Pull Request #398 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: auth: LWS10-CID JWT verifier with ES256K (#397) by melvincarvalho · Pull Request #398 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Closes #397. Pairs with JavaScriptSolidServer/doctor#3. Implements the verifier side of the LWS 1.0 SSI-via-CID FPWD (2026-04-23). An incoming Bearer JWT whose kid references a verificationMethod in the subject's WebID profile authenticates as that WebID once the JWT signature checks against the VM's publicKeyJwk. What's new src/auth/lws-cid.js — new module: hasLwsCidAuth() (cheap header detector) + verifyLwsCidAuth() (full verifier) Wired into getWebIdFromRequestAsync between Solid-OIDC and NIP-98 17 unit tests in test/lws-cid.test.js — happy path + 10 distinct rejection cases Algorithm story ES256K (RFC8812 — ECDSA-secp256k1, registered JWS alg) is the focus, because it lets a Nostr user reuse their existing secp256k1 private key as an LWS-CID auth credential — same key, ECDSA signature instead of Schnorr. Server-side verification uses @noble/curves (already in tree from NIP-98), so no new dep. ES256, ES384, EdDSA, RS256 also accepted via jose for non-Nostr keys. Detection vs existing IDP JWTs Unambiguous: LWS-CID kid is a URL with a fragment (the VM's id), while IDP-issued JWTs use opaque fingerprints. Routing on header shape avoids any conflict with the existing Bearer fallback that calls verifyJwtFromIdp. What it enforces FPWD §4: sub === iss === client_id (all the same WebID URI), aud includes server origin, exp not past, iat recent CID 1.0 §3.3: kid resolves to a VM whose id matches; that VM is referenced from authentication Self-control: VM controller agrees with profile.controller (with @id fallback) — same rule the doctor's client-side validator uses, normalized through the same JSON-LD shape helper (string / {@id} / {id} / array) Cross-document protection: kid's document URL must equal sub's document URL — can't use a key from someone else's profile Test plan Happy path: valid ES256K JWT against a CID-shaped profile → authenticated none alg rejected sub/iss/client_id divergence rejected kid in different document than sub rejected Expired JWT rejected Unknown VM id rejected VM not in authentication rejected aud not matching server origin rejected Tampered signature rejected Profile-VM-key vs JWT-signing-key mismatch rejected Profile fetch failure rejected Full suite: 655/655 pass — no regressions Manual end-to-end against JavaScriptSolidServer/doctor#3 once that lands Refs LWS10-CID FPWD: https://www.w3.org/TR/2026/WD-lws10-authn-ssi-cid-20260423/ W3C Controlled Identifiers v1.0: https://www.w3.org/TR/cid-1.0/ RFC8812 (ES256K): https://www.rfc-editor.org/rfc/rfc8812 #386 — overall convergence tracker (this is Phase 3a, server side) #319 — broader LWS auth alignment tracker (this is the #3 CID sub-bullet) #306 — auth-method preference order (LWS-CID slots between OIDC and NIP-98)

Open Graph Description: Closes #397. Pairs with JavaScriptSolidServer/doctor#3. Implements the verifier side of the LWS 1.0 SSI-via-CID FPWD (2026-04-23). An incoming Bearer JWT whose kid references a verificationMethod i...

X Description: Closes #397. Pairs with JavaScriptSolidServer/doctor#3. Implements the verifier side of the LWS 1.0 SSI-via-CID FPWD (2026-04-23). An incoming Bearer JWT whose kid references a verificationMethod i...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

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:bab280cb-1fa5-5909-d545-c98888d4fcf3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD6C6:12AC18:2982E6C:36E1F24:6B038BE5
html-safe-nonce058e8375bcd24b47a144bcf9a3f1578e1fde20fe852ce219b62f86507f7dead6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkM2OjEyQUMxODoyOTgyRTZDOjM2RTFGMjQ6NkIwMzhCRTUiLCJ2aXNpdG9yX2lkIjoiODE1MDc0MzQ3NDQ2ODI2MDgzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac864c4d5026142ba82cf2442293e5308d3f27acc484b72f4c5b822a1d3531701b
hovercard-subject-tagpull_request:3654381539
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/398/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 #397. Pairs with JavaScriptSolidServer/doctor#3. Implements the verifier side of the LWS 1.0 SSI-via-CID FPWD (2026-04-23). An incoming Bearer JWT whose kid references a verificationMethod i...
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/398/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F398%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%2F398%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/398/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/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-397-lws-cid-verifierhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/issue-397-lws-cid-verifier
Conversation 35 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398
Commits 10 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits
Checks 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/checks
Files changed https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files
auth: LWS10-CID JWT verifier with ES256K (#397) https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files#top
Show all changes 10 commits https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files
72f1915 auth: LWS10-CID JWT verifier with ES256K (#397) melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/72f19151889f4ea28357eb1b275b2a349d462ed0
20a5cde Address copilot pass 1 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/20a5cde5d2d9640cb8144ae25ad04f16bb87fb8d
abf926b Address copilot pass 2 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/abf926be300598c1d960d736391036763a23b1f1
cf64e28 Address copilot pass 3 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/cf64e28e7caf7a87f807f03a4f16a01fe846eed5
73f394c Address copilot pass 4 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/73f394c1717e83ceef8edc4ec956567724d3881d
37781fc Address copilot pass 5 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/37781fc061572699f2c880577be4a76072b1d805
3b1d33e Address copilot pass 6 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/3b1d33ed05245fc945f57a6fc93e54ffdf4b3081
6093e6f Address copilot pass 7 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/6093e6f711ab5b5022e040038f502f194b9dc537
858752c Address copilot pass 8 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/858752c69f64c642d974e25d21d97ceb9589d820
c0ee019 Address copilot pass 9 on #398 melvincarvalho May 9, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/commits/c0ee019a4857370cc445f2510a706626181ed785
Clear filters https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files
lws-cid.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files#diff-2baad457be0812b0f10b3469842944062f163214c5654dcf2dff91185cc3f1e7
token.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files#diff-17ee9d057a75ccc35ca62609f9b13d7f478aa015850e0eadae3009ac58e23415
lws-cid.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/files#diff-ee18ad7432f0b8f81e6ee5880fe287b00da2297b5c8c54ce239d5eda9aa353a0
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/398/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.