Title: B.3: end-to-end LWS10-CID auth — sign-in, ES256K JWK VM, JWT signing · Issue #3 · JavaScriptSolidServer/doctor · GitHub
Open Graph Title: B.3: end-to-end LWS10-CID auth — sign-in, ES256K JWK VM, JWT signing · Issue #3 · JavaScriptSolidServer/doctor
X Title: B.3: end-to-end LWS10-CID auth — sign-in, ES256K JWK VM, JWT signing · Issue #3 · JavaScriptSolidServer/doctor
Description: B.3 closes the loop: the doctor goes from a read-only diagnostic + key-snippet generator (B.0/B.2) to a fully end-to-end LWS10-CID auth client. Pairs with JavaScriptSolidServer/JavaScriptSolidServer#397 (server-side LWS10-CID JWT verifie...
Open Graph Description: B.3 closes the loop: the doctor goes from a read-only diagnostic + key-snippet generator (B.0/B.2) to a fully end-to-end LWS10-CID auth client. Pairs with JavaScriptSolidServer/JavaScriptSolidServe...
X Description: B.3 closes the loop: the doctor goes from a read-only diagnostic + key-snippet generator (B.0/B.2) to a fully end-to-end LWS10-CID auth client. Pairs with JavaScriptSolidServer/JavaScriptSolidServe...
Opengraph URL: https://github.com/JavaScriptSolidServer/doctor/issues/3
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"B.3: end-to-end LWS10-CID auth — sign-in, ES256K JWK VM, JWT signing","articleBody":"B.3 closes the loop: the doctor goes from a read-only diagnostic + key-snippet generator (B.0/B.2) to a fully end-to-end **LWS10-CID auth client**.\n\nPairs with **JavaScriptSolidServer/JavaScriptSolidServer#397** (server-side LWS10-CID JWT verifier). The two will be developed together so each validates against the other's real output before merging.\n\n## What it does\n\n1. **Sign in to the user's pod via Solid-OIDC** — using [`solid-oidc`](https://www.npmjs.com/package/solid-oidc) (zero-dep, single 700-line file, ~4kb gzipped, IndexedDB session persistence, DPoP-bound \\`authFetch\\`). Imported via esm.sh CDN — no build step.\n2. **Derive a JsonWebKey from the connected Nostr signer** — same secp256k1 key, recovered to full-point JWK (\\`kty: EC, crv: secp256k1, x, y, alg: ES256K\\`). Uses \\`@noble/secp256k1\\` via CDN (~10kb) for point recovery.\n3. **PATCH a \\`JsonWebKey\\` VM into the WebID profile** — alongside (not replacing) the f-form Multikey VM from B.2. Both VMs reference the same key from different angles: Multikey for did:nostr / Schnorr-track binding, JsonWebKey for ES256K JWS signing.\n4. **Persist the user's Nostr privkey in IndexedDB** (initial cut: assumes user enters their nsec; future: NIP-07 doesn't expose ECDSA so signing happens locally). Encrypted-at-rest TBD.\n5. **Sign a test LWS10-CID JWT** — \\`alg: ES256K, kid: \u003cVM id>\\`, claims \\`sub === iss === client_id === \u003cWebID>\\`, \\`aud\\` is the target pod origin, \\`exp\\`/\\`iat\\` set. ECDSA-sign via \\`@noble/secp256k1\\`.\n6. **Demo button**: hit a protected endpoint on the pod with the JWT in \\`Authorization: Bearer\\` — once #397 lands, this should authenticate end-to-end.\n\n## Acceptance\n\n- [ ] Sign in via Solid-OIDC works on a JSS pod\n- [ ] Profile after PATCH has both the Multikey VM (from B.2) and the new JsonWebKey VM, with controller predicates intact\n- [ ] Generated JWT verifies cleanly via a Node test fixture using the same `@noble/secp256k1` primitives\n- [ ] When JSS#397 is live, clicking \"test auth\" returns 200 from a protected resource\n- [ ] Reverting the PATCH (logout + delete VM) leaves the profile byte-stable\n\n## Out of scope\n\n- Schnorr signing path / NIP-07-only signers (xlogin doesn't expose ECDSA — that's a separate B.x once a NIP-07 extension or browser-side Schnorr-as-JWS exists)\n- LWS10-did:key path (separate, B.4)\n- Encrypted-at-rest privkey storage in IndexedDB (deferred — initial cut leaves this configurable)\n- WebAuthn passkey VM\n- bip340-jcs-2025 Data Integrity proofs (separate; for VC signing, not HTTP auth)\n\n## Refs\n\n- JSS#397 — server-side verifier (paired)\n- JSS#386 — overall convergence tracker (this is Phase 3a client-side)\n- [LWS10-CID FPWD](https://www.w3.org/TR/2026/WD-lws10-authn-ssi-cid-20260423/)\n- [solid-oidc package](https://www.npmjs.com/package/solid-oidc)\n- [@noble/secp256k1](https://www.npmjs.com/package/@noble/secp256k1)\n- [RFC8812 — ES256K](https://www.rfc-editor.org/rfc/rfc8812)","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-09T08:57:43Z","url":"https://github.com/JavaScriptSolidServer/doctor/issues/3"}
| 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:02c87cd3-d496-6af8-bc1c-2c049def8136 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7A0:1F40:25DCC9:2FEB7F:6B038DB4 |
| html-safe-nonce | effccbc58c6cf94c29395f866ab148da74cb0ace6eac297aa052c16e73e52db8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0EwOjFGNDA6MjVEQ0M5OjJGRUI3Rjo2QjAzOERCNCIsInZpc2l0b3JfaWQiOiI1NjY4MTI5MjU3ODQ3NzU0MTY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 844998c32acd21cef42424b35d7f5b1744c50abe80756d1a37c604a1f22ac32f |
| hovercard-subject-tag | issue:4411924600 |
| 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/doctor/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/048e892378cce1cc3b64d703131dcc783e6af2e6034dc6ac2eed7190e912c91d/JavaScriptSolidServer/doctor/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/048e892378cce1cc3b64d703131dcc783e6af2e6034dc6ac2eed7190e912c91d/JavaScriptSolidServer/doctor/issues/3 |
| og:image:alt | B.3 closes the loop: the doctor goes from a read-only diagnostic + key-snippet generator (B.0/B.2) to a fully end-to-end LWS10-CID auth client. Pairs with JavaScriptSolidServer/JavaScriptSolidServe... |
| 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/doctor git https://github.com/JavaScriptSolidServer/doctor.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1233629856 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/doctor |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1233629856 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/doctor |
| 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