Title: Align WebID profile emission with LWS 1.0 (dual-write CID service[]) · Issue #320 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Align WebID profile emission with LWS 1.0 (dual-write CID service[]) · Issue #320 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Align WebID profile emission with LWS 1.0 (dual-write CID service[]) · Issue #320 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Part of #319 (LWS 1.0 Auth Suite alignment). Scoped as a small, low-risk first step. Why The LWS 1.0 OpenID Connect FPWD specifies that a verifier looks up trust via a service object in the user's Controlled Identifier v1.0 document — sp...
Open Graph Description: Part of #319 (LWS 1.0 Auth Suite alignment). Scoped as a small, low-risk first step. Why The LWS 1.0 OpenID Connect FPWD specifies that a verifier looks up trust via a service object in the user's ...
X Description: Part of #319 (LWS 1.0 Auth Suite alignment). Scoped as a small, low-risk first step. Why The LWS 1.0 OpenID Connect FPWD specifies that a verifier looks up trust via a service object in the user...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/320
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Align WebID profile emission with LWS 1.0 (dual-write CID service[])","articleBody":"Part of **#319** (LWS 1.0 Auth Suite alignment). Scoped as a small, low-risk first step.\n\n## Why\n\nThe [LWS 1.0 OpenID Connect FPWD](https://www.w3.org/TR/2026/WD-lws10-authn-openid-20260423/) specifies that a verifier looks up trust via a service object in the user's [Controlled Identifier v1.0](https://www.w3.org/TR/cid-1.0/) document — specifically an entry with `type: https://www.w3.org/ns/lws#OpenIdProvider` whose `serviceEndpoint` matches the token's `iss` claim.\n\nJSS profiles today expose the same information via the `solid:oidcIssuer` predicate. That works for existing Solid clients but not for LWS-aware verifiers, which look for the CID `service[]` shape.\n\n## Scope\n\nEmit **one** CID `service[]` entry in the generated WebID profile, mirroring the already-present `oidcIssuer` value. Nothing else moves.\n\n- `lws:OpenIdProvider` is the only service `type` normatively defined in the four LWS10 FPWDs. `pim:storage`, `ldp:inbox`, etc. are not yet spec'd under LWS — leaving them alone until the vocabulary stabilizes.\n- `verificationMethod[]` is explicitly out of scope. Publishing public keys in a user's profile is a security-model change (the profile becomes authoritative for which keys can act for them). Tracking separately.\n\n## What changes\n\n`src/webid/profile.js` — four small additions to `generateProfileJsonLd`:\n\n1. Two context namespace entries: `cid` → `https://www.w3.org/ns/cid/v1#`, `lws` → `https://www.w3.org/ns/lws#`.\n2. Two context term aliases: `service` → `cid:service`, `serviceEndpoint` → `cid:serviceEndpoint`.\n3. One new field in the output: a `service[]` array with a single `lws:OpenIdProvider` entry.\n4. Strip the `#me` fragment from `webId` to derive the document URL for the service entry's fragment id.\n\nNested service entries use the JSON-LD keywords `@id` and `@type` directly. CID 1.0's own context URL (`https://www.w3.org/ns/cid/v1`) provides `id`/`type` aliases for authors who prefer the shorter form, but since this profile uses inline term definitions rather than a context URL, we stick with the keywords — they're JSON-LD-native and don't depend on an out-of-band context fetch. A verifier that runs a JSON-LD processor (the expected behaviour for CID-conformant tooling) expands both forms identically.\n\n## Shape\n\n### Before\n\n```jsonld\n{\n \"@context\": {\n \"foaf\": \"http://xmlns.com/foaf/0.1/\",\n \"solid\": \"http://www.w3.org/ns/solid/terms#\",\n \"schema\": \"http://schema.org/\",\n \"pim\": \"http://www.w3.org/ns/pim/space#\",\n \"ldp\": \"http://www.w3.org/ns/ldp#\",\n \"inbox\": { \"@id\": \"ldp:inbox\", \"@type\": \"@id\" },\n \"storage\": { \"@id\": \"pim:storage\", \"@type\": \"@id\" },\n \"oidcIssuer\": { \"@id\": \"solid:oidcIssuer\", \"@type\": \"@id\" },\n ...\n },\n \"@id\": \"https://test2.solidweb.app/profile/card.jsonld#me\",\n \"@type\": [\"foaf:Person\", \"schema:Person\"],\n \"foaf:name\": \"test2\",\n \"inbox\": \"https://test2.solidweb.app/inbox/\",\n \"storage\": \"https://test2.solidweb.app/\",\n \"oidcIssuer\": \"https://solidweb.app/\",\n ...\n}\n```\n\n### After\n\n```jsonld\n{\n \"@context\": {\n \"foaf\": \"http://xmlns.com/foaf/0.1/\",\n \"solid\": \"http://www.w3.org/ns/solid/terms#\",\n \"schema\": \"http://schema.org/\",\n \"pim\": \"http://www.w3.org/ns/pim/space#\",\n \"ldp\": \"http://www.w3.org/ns/ldp#\",\n \"cid\": \"https://www.w3.org/ns/cid/v1#\",\n \"lws\": \"https://www.w3.org/ns/lws#\",\n \"inbox\": { \"@id\": \"ldp:inbox\", \"@type\": \"@id\" },\n \"storage\": { \"@id\": \"pim:storage\", \"@type\": \"@id\" },\n \"oidcIssuer\": { \"@id\": \"solid:oidcIssuer\", \"@type\": \"@id\" },\n \"service\": { \"@id\": \"cid:service\", \"@container\": \"@set\" },\n \"serviceEndpoint\": { \"@id\": \"cid:serviceEndpoint\", \"@type\": \"@id\" },\n ...\n },\n \"@id\": \"https://test2.solidweb.app/profile/card.jsonld#me\",\n \"@type\": [\"foaf:Person\", \"schema:Person\"],\n \"foaf:name\": \"test2\",\n \"inbox\": \"https://test2.solidweb.app/inbox/\",\n \"storage\": \"https://test2.solidweb.app/\",\n \"oidcIssuer\": \"https://solidweb.app/\",\n \"service\": [\n {\n \"@id\": \"https://test2.solidweb.app/profile/card.jsonld#oidc\",\n \"@type\": \"lws:OpenIdProvider\",\n \"serviceEndpoint\": \"https://solidweb.app/\"\n }\n ],\n ...\n}\n```\n\n## Properties\n\n- **Zero removals.** Every existing WebID predicate stays as-is, so Mashlib, solid-client-authn, rdflib.js etc. keep seeing the profile they see today.\n- **Additive ~200 bytes on the wire** per profile.\n- **Fragment id** (`#oidc`) resolves against the document URL — idiomatic JSON-LD and matches CID examples.\n- **Existing pods are unaffected** unless regenerated; new pods get the new shape on first creation.\n\n## Ship-it criteria\n\n- [ ] `src/webid/profile.js` emits the CID `service[]` entry.\n- [ ] New test in `test/webid.test.js` asserts the entry is present with the correct `@type` and `serviceEndpoint` mirroring `oidcIssuer`.\n- [ ] Full suite still green.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-04-23T15:59:08Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/320"}
| 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:de155558-d5a1-f087-f9e3-e341eb1bd835 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 928E:27A9B8:104E78:14B58B:6B0389FE |
| html-safe-nonce | a47c4c9d5096f3946a515dbb17c47cf0159c46f9d2f86dc21a1b188574466718 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjhFOjI3QTlCODoxMDRFNzg6MTRCNThCOjZCMDM4OUZFIiwidmlzaXRvcl9pZCI6IjM4NDE4ODEyMzc3MTExOTQ2MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2d8149f5401e6ade2c725450cec4d3d1facf9f5cdf00fc68432d54c92fce7d95 |
| hovercard-subject-tag | issue:4317256113 |
| 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/JavaScriptSolidServer/320/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4ce843856be7f5ec1cc74ab8ee668eb846d67088f9c20a78bfb1470996adbb2/JavaScriptSolidServer/JavaScriptSolidServer/issues/320 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4ce843856be7f5ec1cc74ab8ee668eb846d67088f9c20a78bfb1470996adbb2/JavaScriptSolidServer/JavaScriptSolidServer/issues/320 |
| og:image:alt | Part of #319 (LWS 1.0 Auth Suite alignment). Scoped as a small, low-risk first step. Why The LWS 1.0 OpenID Connect FPWD specifies that a verifier looks up trust via a service object in the user's ... |
| 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/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| 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