Skip to content

Align JSS auth modules with LWS 1.0 Authentication Suite (FPWDs 2026-04-23) #319

Open

Description

@melvincarvalho

Context

The W3C Linked Web Storage WG published four First Public Working Drafts of the LWS 1.0 Authentication Suite on 2026-04-23:

  1. LWS 1.0 Authentication Suite: OpenID Connect
  2. LWS 1.0 Authentication Suite: SAML 2.0
  3. LWS 1.0 Authentication Suite: Self-signed Identity using Controlled Identifiers
  4. LWS 1.0 Authentication Suite: Self-signed Identity using did:key

Status in JSS today

Suggested sequence

  1. 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.
  2. 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).
  3. 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.
  4. 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

Activity

  1. added
    nostr
    on May 9, 2026
  2. melvincarvalho commented on May 9, 2026

    @melvincarvalho
    ContributorAuthor

    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.

  3. melvincarvalho commented on May 9, 2026

    @melvincarvalho
    ContributorAuthor

    Reference for the #3 CID (Controlled Identifiers) sub-bullet implementation target: bip340-jcs-2025 Data 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.js primitives).

    Spec elements relevant to JSS

    • Cryptosuite identifiers: bip340-jcs-2025 (JSON Canonicalization Scheme) and bip340-rdfc-2025 (RDF Dataset Canonicalization). Recommend starting with bip340-jcs-2025 — JCS is a small dependency vs. the full RDFC pipeline.
    • Multikey encoding for secp256k1 public keys: 35-byte value with 0xe7 0x01 prefix + 33-byte key, base58btc + multibase z.
    • DataIntegrityProof envelope: standard W3C structure with cryptosuite, verificationMethod, proofPurpose, base64url proofValue.
    • Signing algorithm: BIP-340 Schnorr over secp256k1 — same primitive JSS already uses for NIP-98 verification via @noble/curves.

    Implementation outline

    1. Add bip340-jcs-2025 cryptosuite handler in the auth pipeline.
    2. Decode verificationMethod from the claimant's profile (the Multikey-encoded secp256k1 public key).
    3. JCS-canonicalize the proof's protected payload (small dependency: npm:canonicalize or similar).
    4. Verify BIP-340 Schnorr signature with existing @noble/curves schnorr primitive.
    5. Issue session on success.

    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-2025 it has a citable cryptosuite spec to point at.

    Related work

    Strategic positioning

    Implementing bip340-jcs-2025 puts 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.

  4. melvincarvalho commented on May 9, 2026

    @melvincarvalho
    ContributorAuthor

    #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.

  5. melvincarvalho commented on Oct 14, 2026

    @melvincarvalho
    ContributorAuthor

    Status update (Oct 2026), since the checkboxes above are stale:

    Touchstone's auth module (23 tests, CID with HTTPS and did:key subjects, OIDC, SAML) is the conformance check for this issue; CI scoreboard coming via #621.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    nostr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions