Repository navigation
Open
Labels
nostrNostr relay, did:nostr auth, NIP-related
Description
Context
The W3C Linked Web Storage WG published four First Public Working Drafts of the LWS 1.0 Authentication Suite on 2026-04-23:
- LWS 1.0 Authentication Suite: OpenID Connect
- LWS 1.0 Authentication Suite: SAML 2.0
- LWS 1.0 Authentication Suite: Self-signed Identity using Controlled Identifiers
- LWS 1.0 Authentication Suite: Self-signed Identity using did:key
Status in JSS today
- 404 responses missing Accept-Patch/Accept-Put headers for PodOS compatibility #1 OpenID Connect — JSS has Solid-OIDC (DPoP) via
src/auth/solid-oidc.js. Solid-OIDC is a profile of OIDC; need to read the new LWS10 OIDC draft and verify conformance / list any deltas. - PATCH should create resources if they don't exist (Solid spec) #2 SAML 2.0 — net-new. Enterprise-flavored, not aligned with the current Solid ecosystem focus. Leave as scoped-out unless a concrete user asks.
- Bring login/registration to parity with NSS #3 CID (Controlled Identifiers) — JSS's did:nostr (
src/auth/did-nostr.js) is the closest existing pattern: a key-controlled self-signed identity. CID generalizes the pattern across DID methods. A shared "self-signed identity" verifier could back both did:nostr and future CID-backed identifiers. - Add did:nostr SSO and Schnorr (NIP-98) authentication #4 did:key — tracked in more detail in Support did:key Authentication (LWS10 Spec) #86. Structurally similar to did:nostr — an ed25519/p256/secp256k1 pubkey-based DID with self-signed JWTs. Mostly a new
src/auth/did-key.jsmodule mirroringdid-nostr.js.
Suggested sequence
- Read 404 responses missing Accept-Patch/Accept-Put headers for PodOS compatibility #1 and document any delta between current Solid-OIDC impl and the LWS10 OIDC profile.
- Implement Add did:nostr SSO and Schnorr (NIP-98) authentication #4 via Support did:key Authentication (LWS10 Spec) #86 first (it's the most well-scoped and has the clearest analog in did:nostr).
- Abstract a shared self-signed verifier from did:key + did:nostr implementations, then layer Bring login/registration to parity with NSS #3 CID on top.
- Park PATCH should create resources if they don't exist (Solid spec) #2 (SAML) unless there is a specific deployment request.
Goal
JSS advertises conformance with LWS 1.0 Auth Suite once each sub-box is checked, with end-to-end tests demonstrating interop with at least one other LWS implementation per spec.
Related
- Support did:key Authentication (LWS10 Spec) #86 did:key authentication (detailed spec and plan)
- Add did:nostr SSO and Schnorr (NIP-98) authentication #4 did:nostr SSO + NIP-98 (closest existing CID analog)
Metadata
Metadata
Assignees
Labels
nostrNostr relay, did:nostr auth, NIP-related
Activity
melvincarvalho commentedon May 9, 2026
The convergence design is now in #386 — load-bearing insight is that LWS auth FPWDs delegate to CID v1, so the WebID is the controlled identifier document. Phase 1 is profile-side triples (additive, no breaking changes); Phase 3 is the LWS-CID verifier this issue calls for.
melvincarvalho commentedon May 9, 2026
Reference for the #3 CID (Controlled Identifiers) sub-bullet implementation target:
bip340-jcs-2025Data Integrity cryptosuite.This is the concrete W3C-Data-Integrity-track spec for BIP-340 Schnorr over secp256k1, which is the natural CID-backed identifier suite for Nostr-aligned identities (and aligns with the existing
did-nostr.jsprimitives).Spec elements relevant to JSS
bip340-jcs-2025(JSON Canonicalization Scheme) andbip340-rdfc-2025(RDF Dataset Canonicalization). Recommend starting withbip340-jcs-2025— JCS is a small dependency vs. the full RDFC pipeline.0xe7 0x01prefix + 33-byte key, base58btc + multibasez.cryptosuite,verificationMethod,proofPurpose, base64urlproofValue.@noble/curves.Implementation outline
bip340-jcs-2025cryptosuite handler in the auth pipeline.verificationMethodfrom the claimant's profile (the Multikey-encoded secp256k1 public key).npm:canonicalizeor similar).@noble/curvesschnorr primitive.The "shared self-signed verifier" abstraction in the original sub-bullet description is exactly this — a generic verifier that resolves a verificationMethod from the profile and checks a signature. With
bip340-jcs-2025it has a citable cryptosuite spec to point at.Related work
@type: '@json'Turtle conneg fix is a Phase B blocker forpublicKeyJwk-typed verificationMethods (Multikey path is unaffected)nostrcg.github.io) — editorial space for cross-referencing did:nostr ↔ CID Schnorr cryptosuite workStrategic positioning
Implementing
bip340-jcs-2025puts JSS as a reference implementation for the dcdpr cryptosuite ahead of W3C wider status. Bridges the Nostr ecosystem (BIP-340 native) with W3C VC / LWS standards work cleanly.melvincarvalho commentedon May 9, 2026
#3 CID sub-bullet now scoped: filed as #397 — LWS10-CID JWT verifier with ES256K (RFC8812 — registered JWS alg over secp256k1). Companion client work in JavaScriptSolidServer/doctor#3.
Approach reuses Nostr identity directly: same secp256k1 private key, signed as ECDSA for ES256K JWTs, signed as Schnorr/BIP-340 for everything else. xlogin doesn't expose ECDSA, so the doctor signs locally with
@noble/secp256k1(already in tree server-side from NIP-98). No spec extension; strict FPWD conformance.auth: LWS10-CID JWT verifier with ES256K (#397) (#398)
melvincarvalho commentedon Oct 14, 2026
Status update (Oct 2026), since the checkboxes above are stale:
src/auth/lws-cid.js), NIP-98 → WebID via verificationMethod (auth: NIP-98 → WebID via verificationMethod lookup (#399) #400). See docs/lws.md. Caveat: implemented against the April FPWD, where the CID JWT is the Bearer credential. The 21 Sep 2026 CID WD and the 5 Oct core WD use it as a subject token exchanged at the storage's authorization server (RFC 8693) for anat+jwt. Our verifier is the right building block but will need to sit behind a token endpoint — tracked in Track: LWS protocol conformance (Oct 2026 drafts) — core vs plugin split, Touchstone as acceptance test #621.solid:oidcIssuer, and ID tokens whoseaudis only the client).Touchstone's
authmodule (23 tests, CID with HTTPS and did:key subjects, OIDC, SAML) is the conformance check for this issue; CI scoreboard coming via #621.