[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F8WAARCCJRQP2H7Q959MD":3,"skill-same:01M78F8WAARCCJRQP2H7Q959MD":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78F8WAARCCJRQP2H7Q959MD","solid-client-id",null,"Use when an app must log into Solid with a STABLE, named client identity instead of throwaway dynamic client registration — publishing a Client Identifier Document so the OIDC consent screen shows your app's name, or fixing a deployed app whose client_id keeps changing. Trigger symptoms: consent screen shows a random\u002Fblank client name or a long opaque registration id; \"redirect_uri did not match\"\u002F\"redirect mismatch\" after deploy; \"client_id must match\"\u002F\"client registration client_id field must match\" from CSS; \"SSL is required for client_id authentication\"; deciding between dynamic registration and a static client_id; serving a .jsonld client doc from Next.js\u002FVercel.","jeswr\u002Fsolid-sdk","jeswr","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F63333554?v=4","01M78F8AE112CQ0KHFC3R0Z8SJ","Jesse Wright","01M78F8AERJX4YWDA1S4BMF74V",2,"MIT","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fapps\u002Fissues\u002F.claude\u002Fskills\u002Fsolid-client-id\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: solid-client-id\ndescription: >-\n  Use when an app must log into Solid with a STABLE, named client identity instead of throwaway dynamic client registration — publishing a Client Identifier Document so the OIDC consent screen shows your app's name, or fixing a deployed app whose client_id keeps changing. Trigger symptoms: consent screen shows a random\u002Fblank client name or a long opaque registration id; \"redirect_uri did not match\"\u002F\"redirect mismatch\" after deploy; \"client_id must match\"\u002F\"client registration client_id field must match\" from CSS; \"SSL is required for client_id authentication\"; deciding between dynamic registration and a static client_id; serving a .jsonld client doc from Next.js\u002FVercel.\n---\n\n# Solid static Client Identifier Document\n\nA **Client Identifier Document** is a dereferenceable JSON-LD document hosted by your app whose\n**URL is the application's `client_id`** (Solid-OIDC §Client Identifiers,\n[solidproject.org\u002FTR\u002Foidc#clientids](https:\u002F\u002Fsolidproject.org\u002FTR\u002Foidc#clientids)). During the\nauthorization-code flow the OP (the user's Solid identity provider) fetches that URL, reads the\nclient's metadata from it, and matches the Client-supplied `redirect_uri` against the\n`redirect_uris` listed in the document. No registration call, no client secret.\n\n## Why — static client_id vs dynamic registration\n\n| | Dynamic client registration (the default) | Static Client Identifier Document |\n|---|---|---|\n| Client identity | A throwaway client minted per session by the OP | A stable URL you host — the same `client_id` forever |\n| Consent screen name | Server-generated \u002F blank — users see no recognisable app | Your `client_name`, `logo_uri`, `client_uri` on every login |\n| Redirect safety | Registered ad-hoc each time | OP matches against your published `redirect_uris` |\n| Setup | Zero (works out of the box) | Host one document; URL must equal `client_id` exactly |\n| Best for | Quick local dev \u002F experiments | **Any deployed app** (the user-facing default) |\n\nPrecedent: [theodi\u002Fsolid-browser-extension](https:\u002F\u002Fgithub.com\u002Ftheodi\u002Fsolid-browser-extension)\nauthenticates with a dereferenceable client identifier rather than registering dynamically.\n\n## The document (verified template)\n\nVerified against the published `@context`\n([www.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld](https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld)) and\nthe Solid-OIDC spec example, and **E2E-driven through a real CSS login** (see the verification\nrecord in\n[`..\u002Fsolid-reactive-authentication\u002Fwebid-token-provider.e2e.md`](..\u002Fsolid-reactive-authentication\u002Fwebid-token-provider.e2e.md)).\n\n```json\n{\n  \"@context\": [\"https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld\"],\n  \"client_id\": \"https:\u002F\u002Fapp.example.com\u002Fclientid.jsonld\",\n  \"client_name\": \"Your App Name\",\n  \"redirect_uris\": [\"https:\u002F\u002Fapp.example.com\u002Fcallback.html\"],\n  \"scope\": \"openid webid offline_access\",\n  \"grant_types\": [\"authorization_code\", \"refresh_token\"],\n  \"response_types\": [\"code\"],\n  \"token_endpoint_auth_method\": \"none\",\n  \"client_uri\": \"https:\u002F\u002Fapp.example.com\u002F\",\n  \"logo_uri\": \"https:\u002F\u002Fapp.example.com\u002Flogo.png\"\n}\n```\n\n### Field requirements\n\n| Field | Required | Rule (verified) |\n|---|---|---|\n| `@context` | **Yes** | MUST include the string `https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld` (an array is fine). CSS rejects the doc without it. |\n| `client_id` | **Yes** | MUST equal this document's own URL **byte-for-byte** (scheme, host, port, path, trailing slash). CSS error otherwise: *\"The client registration `client_id` field must match the client ID\"*. |\n| `redirect_uris` | **Yes** | Array of IRIs. MUST list every callback URL the app uses; the OP matches the Client's `redirect_uri` against this list. In the context it is `@type: @id`, `@container: [@id, @set]` — so always an array of absolute URLs. |\n| `scope` | Yes (for Solid) | Space-delimited string. MUST include `webid` (and `openid`). Without `webid` the token is not WebID-bound and the Pod won't treat the request as the user. |\n| `grant_types` | Recommended | `[\"authorization_code\"]`; add `\"refresh_token\"` if you want refresh. |\n| `response_types` | Recommended | `[\"code\"]` for the authorization-code flow. |\n| `token_endpoint_auth_method` | Recommended | `\"none\"` — a public browser client has no secret. CSS forces this server-side regardless, but stricter OPs require you to declare it. |\n| `client_name` | Optional | Shown on the consent screen. The whole point of going static. |\n| `logo_uri`, `client_uri`, `tos_uri`, `policy_uri`, `contacts` | Optional | All in the context; surfaced by some consent screens. |\n\nThe full context defines exactly these terms (all under `oidc:` except `client_id` → `@id`):\n`client_id, client_uri, logo_uri, policy_uri, tos_uri, redirect_uris, require_auth_time,\ndefault_max_age, application_type, client_name, contacts, grant_types, response_types, scope,\ntoken_endpoint_auth_method`. Anything else you add is dropped on JSON-LD expansion.\n\n## Hosting rules\n\n| Rule | Detail |\n|---|---|\n| **URL === `client_id`** | The location you serve from must equal the `client_id` value exactly. Pick the URL first, then bake it into the doc (or derive it from the request — see recipe). |\n| **HTTPS in production** | The OP requires `https:` for non-local client ids. CSS makes ONE exception: `http:\u002F\u002Flocalhost[:port]` is allowed for dev (see findings). Anything else over HTTP → *\"SSL is required for client_id authentication unless working locally.\"* |\n| **Content-Type** | Spec: a dereferenced Client Identifier MUST be `application\u002Fld+json` (unless content negotiation says otherwise). Set it. (Empirically CSS 7 ignores it — it `JSON.parse`s the body regardless — but stricter OPs check, so don't rely on that.) |\n| **Caching** | OPs may cache the document. A short `cache-control` (e.g. `max-age=300`) lets edits propagate without forcing a re-fetch every login. |\n| **Must stay reachable** | The OP fetches it live during every fresh login. If the URL 404s or moves, login breaks. |\n\nAny host works provided the serving URL equals `client_id` and the Content-Type is right —\nthe recipe below is the verified Next.js\u002FVercel variant; adapt the same shape to your\nframework's route\u002Fhandler mechanism.\n\n### Next.js \u002F Vercel hosting recipe (verified)\n\nDo **not** drop the file in `public\u002F` — `next dev` serves a `public\u002F*.jsonld` file as **404**\n(empirically verified; Next's static handler doesn't map that extension). Use a **route\nhandler** so you control the Content-Type and can derive `client_id` from the request origin\n(self-consistent across `localhost` in dev and the Vercel URL in prod):\n\n```ts\n\u002F\u002F src\u002Fapp\u002Fclientid.jsonld\u002Froute.ts  (App Router — a dot in the segment is fine; resolves to \u002Fclientid.jsonld)\nexport const dynamic = \"force-dynamic\";\n\nexport function GET(request: Request): Response {\n  const clientId = new URL(\"\u002Fclientid.jsonld\", request.url).toString(); \u002F\u002F URL === client_id\n  const callback = new URL(\"\u002Fcallback.html\", request.url).toString();\n  const document = {\n    \"@context\": [\"https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld\"],\n    client_id: clientId,\n    client_name: \"Your App Name\",\n    redirect_uris: [callback],\n    scope: \"openid webid offline_access\",\n    grant_types: [\"authorization_code\", \"refresh_token\"],\n    response_types: [\"code\"],\n    token_endpoint_auth_method: \"none\",\n    client_uri: new URL(\"\u002F\", request.url).toString(),\n  };\n  return new Response(JSON.stringify(document, null, 2), {\n    status: 200,\n    headers: { \"content-type\": \"application\u002Fld+json\", \"cache-control\": \"public, max-age=300\" },\n  });\n}\n```\n\nA static-export site can instead ship a real file at the exact path, served with\n`application\u002Fld+json` (configure your host's MIME mapping for `.jsonld`).\n\n## Wiring into the bundled provider\n\nThe published `@solid\u002Freactive-authentication` **`DPoPTokenProvider` (0.1.2) has no static\nclient_id hook** — its constructor is `(callbackUri, getCodeCallback)`, full stop, and it always\ndynamically registers. Use the bundled\n[`WebIdDPoPTokenProvider`](..\u002Fsolid-reactive-authentication\u002Fwebid-token-provider.ts) (companion\nskill `solid-reactive-authentication`), which adds an optional `clientId`:\n\n```ts\nimport { WebIdDPoPTokenProvider, promptWebIdDialog } from \"@\u002Flib\u002Fwebid-token-provider\";\n\nnew ReactiveFetchManager([\n  new WebIdDPoPTokenProvider(\n    new URL(\"\u002Fcallback.html\", location.href).toString(),\n    ui.getCode.bind(ui),\n    promptWebIdDialog,\n    {\n      clientId: new URL(\"\u002Fclientid.jsonld\", location.href).toString(), \u002F\u002F ← static client id\n      allowInsecureLoopback: true,  \u002F\u002F local CSS over HTTP; remote issuers stay HTTPS-strict\n    },\n  ),\n]);\n```\n\nWhen `clientId` is set the provider **skips dynamic registration** and authenticates as a public\nclient whose `client_id` is that URL with `token_endpoint_auth_method: \"none\"`. When `clientId`\nis **absent** it falls back to dynamic registration — so the same provider serves both modes.\n\n## Where a static client id can — and cannot — work\n\nThe IdP must **dereference** the `client_id` URL during login. That single fact decides every\ncombination:\n\n| App runs at | IdP | Static client id? |\n|---|---|---|\n| `localhost` | **local CSS** | ✅ `http:\u002F\u002Flocalhost:\u003Cport>\u002Fclientid.jsonld` — CSS's explicit localhost exception (verified) |\n| `localhost` | **live server** (solidcommunity.net, PodSpaces, any hosted IdP) | ❌ **Impossible.** The remote IdP cannot reach your `localhost` document, and rejects non-HTTPS client ids anyway. **Use dynamic registration for this combination** — omit `clientId`. |\n| Deployed (HTTPS) | live server | ✅ The production default — `https:\u002F\u002Fyour-app.vercel.app\u002Fclientid.jsonld` |\n\nSo the development progression is: local dev against local CSS may use the static path;\n**initial testing against live servers from localhost runs with dynamic registration**; the\nstatic client id becomes permanent once the app is deployed to a public HTTPS URL. Don't fight\nthis — no tunnel-free workaround exists, and the failure mode (IdP can't fetch the doc) wastes\nhours if you expect it to work.\n\n## Gotchas\n\n| Gotcha | Symptom | Fix |\n|---|---|---|\n| `client_id` ≠ document URL | *\"The client registration `client_id` field must match the client ID\"* | Make `client_id` equal the served URL byte-for-byte (watch trailing slash, port, `http`\u002F`https`). Deriving it from `request.url` avoids drift. |\n| Missing `webid` scope | Login \"works\" but Pod reads are still 401 \u002F treated as public | Put `webid` (and `openid`) in `scope`. |\n| `redirect_uri` not listed | *\"redirect_uri did not match\"* after deploy | Add the deployed callback (and every environment's callback) to `redirect_uris`. |\n| Wrong \u002F no Content-Type | Some OPs reject the doc (CSS tolerates it) | Serve `application\u002Fld+json`. |\n| HTTP in production | *\"SSL is required for client_id authentication unless working locally.\"* | Use HTTPS for any non-`localhost` client id. |\n| Stale cache after editing the doc | OP keeps using the old metadata | Lower `cache-control max-age`; bump it back up once stable. |\n| Using published `DPoPTokenProvider` and expecting static client_id | Always dynamically registers; no name on consent | 0.1.2 has no hook — use the bundled `WebIdDPoPTokenProvider` with `clientId`. |\n| Static `localhost` client id against a **live** IdP | Login fails — the IdP cannot fetch your document | Impossible combination; use dynamic registration until the app is deployed (see the matrix above). |\n| Dropped doc in `public\u002F*.jsonld` | 404 in `next dev` | Use a route handler (recipe above). |\n","# Solid static Client Identifier Document\n\nA **Client Identifier Document** is a dereferenceable JSON-LD document hosted by your app whose\n**URL is the application's `client_id`** (Solid-OIDC §Client Identifiers,\n[solidproject.org\u002FTR\u002Foidc#clientids](https:\u002F\u002Fsolidproject.org\u002FTR\u002Foidc#clientids)). During the\nauthorization-code flow the OP (the user's Solid identity provider) fetches that URL, reads the\nclient's metadata from it, and matches the Client-supplied `redirect_uri` against the\n`redirect_uris` listed in the document. No registration call, no client secret.\n\n## Why — static client_id vs dynamic registration\n\n| | Dynamic client registration (the default) | Static Client Identifier Document |\n|---|---|---|\n| Client identity | A throwaway client minted per session by the OP | A stable URL you host — the same `client_id` forever |\n| Consent screen name | Server-generated \u002F blank — users see no recognisable app | Your `client_name`, `logo_uri`, `client_uri` on every login |\n| Redirect safety | Registered ad-hoc each time | OP matches against your published `redirect_uris` |\n| Setup | Zero (works out of the box) | Host one document; URL must equal `client_id` exactly |\n| Best for | Quick local dev \u002F experiments | **Any deployed app** (the user-facing default) |\n\nPrecedent: [theodi\u002Fsolid-browser-extension](https:\u002F\u002Fgithub.com\u002Ftheodi\u002Fsolid-browser-extension)\nauthenticates with a dereferenceable client identifier rather than registering dynamically.\n\n## The document (verified template)\n\nVerified against the published `@context`\n([www.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld](https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld)) and\nthe Solid-OIDC spec example, and **E2E-driven through a real CSS login** (see the verification\nrecord in\n[`..\u002Fsolid-reactive-authentication\u002Fwebid-token-provider.e2e.md`](..\u002Fsolid-reactive-authentication\u002Fwebid-token-provider.e2e.md)).\n\n```json\n{\n  \"@context\": [\"https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld\"],\n  \"client_id\": \"https:\u002F\u002Fapp.example.com\u002Fclientid.jsonld\",\n  \"client_name\": \"Your App Name\",\n  \"redirect_uris\": [\"https:\u002F\u002Fapp.example.com\u002Fcallback.html\"],\n  \"scope\": \"openid webid offline_access\",\n  \"grant_types\": [\"authorization_code\", \"refresh_token\"],\n  \"response_types\": [\"code\"],\n  \"token_endpoint_auth_method\": \"none\",\n  \"client_uri\": \"https:\u002F\u002Fapp.example.com\u002F\",\n  \"logo_uri\": \"https:\u002F\u002Fapp.example.com\u002Flogo.png\"\n}\n```\n\n### Field requirements\n\n| Field | Required | Rule (verified) |\n|---|---|---|\n| `@context` | **Yes** | MUST include the string `https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld` (an array is fine). CSS rejects the doc without it. |\n| `client_id` | **Yes** | MUST equal this document's own URL **byte-for-byte** (scheme, host, port, path, trailing slash). CSS error otherwise: *\"The client registration `client_id` field must match the client ID\"*. |\n| `redirect_uris` | **Yes** | Array of IRIs. MUST list every callback URL the app uses; the OP matches the Client's `redirect_uri` against this list. In the context it is `@type: @id`, `@container: [@id, @set]` — so always an array of absolute URLs. |\n| `scope` | Yes (for Solid) | Space-delimited string. MUST include `webid` (and `openid`). Without `webid` the token is not WebID-bound and the Pod won't treat the request as the user. |\n| `grant_types` | Recommended | `[\"authorization_code\"]`; add `\"refresh_token\"` if you want refresh. |\n| `response_types` | Recommended | `[\"code\"]` for the authorization-code flow. |\n| `token_endpoint_auth_method` | Recommended | `\"none\"` — a public browser client has no secret. CSS forces this server-side regardless, but stricter OPs require you to declare it. |\n| `client_name` | Optional | Shown on the consent screen. The whole point of going static. |\n| `logo_uri`, `client_uri`, `tos_uri`, `policy_uri`, `contacts` | Optional | All in the context; surfaced by some consent screens. |\n\nThe full context defines exactly these terms (all under `oidc:` except `client_id` → `@id`):\n`client_id, client_uri, logo_uri, policy_uri, tos_uri, redirect_uris, require_auth_time,\ndefault_max_age, application_type, client_name, contacts, grant_types, response_types, scope,\ntoken_endpoint_auth_method`. Anything else you add is dropped on JSON-LD expansion.\n\n## Hosting rules\n\n| Rule | Detail |\n|---|---|\n| **URL === `client_id`** | The location you serve from must equal the `client_id` value exactly. Pick the URL first, then bake it into the doc (or derive it from the request — see recipe). |\n| **HTTPS in production** | The OP requires `https:` for non-local client ids. CSS makes ONE exception: `http:\u002F\u002Flocalhost[:port]` is allowed for dev (see findings). Anything else over HTTP → *\"SSL is required for client_id authentication unless working locally.\"* |\n| **Content-Type** | Spec: a dereferenced Client Identifier MUST be `application\u002Fld+json` (unless content negotiation says otherwise). Set it. (Empirically CSS 7 ignores it — it `JSON.parse`s the body regardless — but stricter OPs check, so don't rely on that.) |\n| **Caching** | OPs may cache the document. A short `cache-control` (e.g. `max-age=300`) lets edits propagate without forcing a re-fetch every login. |\n| **Must stay reachable** | The OP fetches it live during every fresh login. If the URL 404s or moves, login breaks. |\n\nAny host works provided the serving URL equals `client_id` and the Content-Type is right —\nthe recipe below is the verified Next.js\u002FVercel variant; adapt the same shape to your\nframework's route\u002Fhandler mechanism.\n\n### Next.js \u002F Vercel hosting recipe (verified)\n\nDo **not** drop the file in `public\u002F` — `next dev` serves a `public\u002F*.jsonld` file as **404**\n(empirically verified; Next's static handler doesn't map that extension). Use a **route\nhandler** so you control the Content-Type and can derive `client_id` from the request origin\n(self-consistent across `localhost` in dev and the Vercel URL in prod):\n\n```ts\n\u002F\u002F src\u002Fapp\u002Fclientid.jsonld\u002Froute.ts  (App Router — a dot in the segment is fine; resolves to \u002Fclientid.jsonld)\nexport const dynamic = \"force-dynamic\";\n\nexport function GET(request: Request): Response {\n  const clientId = new URL(\"\u002Fclientid.jsonld\", request.url).toString(); \u002F\u002F URL === client_id\n  const callback = new URL(\"\u002Fcallback.html\", request.url).toString();\n  const document = {\n    \"@context\": [\"https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld\"],\n    client_id: clientId,\n    client_name: \"Your App Name\",\n    redirect_uris: [callback],\n    scope: \"openid webid offline_access\",\n    grant_types: [\"authorization_code\", \"refresh_token\"],\n    response_types: [\"code\"],\n    token_endpoint_auth_method: \"none\",\n    client_uri: new URL(\"\u002F\", request.url).toString(),\n  };\n  return new Response(JSON.stringify(document, null, 2), {\n    status: 200,\n    headers: { \"content-type\": \"application\u002Fld+json\", \"cache-control\": \"public, max-age=300\" },\n  });\n}\n```\n\nA static-export site can instead ship a real file at the exact path, served with\n`application\u002Fld+json` (configure your host's MIME mapping for `.jsonld`).\n\n## Wiring into the bundled provider\n\nThe published `@solid\u002Freactive-authentication` **`DPoPTokenProvider` (0.1.2) has no static\nclient_id hook** — its constructor is `(callbackUri, getCodeCallback)`, full stop, and it always\ndynamically registers. Use the bundled\n[`WebIdDPoPTokenProvider`](..\u002Fsolid-reactive-authentication\u002Fwebid-token-provider.ts) (companion\nskill `solid-reactive-authentication`), which adds an optional `clientId`:\n\n```ts\nimport { WebIdDPoPTokenProvider, promptWebIdDialog } from \"@\u002Flib\u002Fwebid-token-provider\";\n\nnew ReactiveFetchManager([\n  new WebIdDPoPTokenProvider(\n    new URL(\"\u002Fcallback.html\", location.href).toString(),\n    ui.getCode.bind(ui),\n    promptWebIdDialog,\n    {\n      clientId: new URL(\"\u002Fclientid.jsonld\", location.href).toString(), \u002F\u002F ← static client id\n      allowInsecureLoopback: true,  \u002F\u002F local CSS over HTTP; remote issuers stay HTTPS-strict\n    },\n  ),\n]);\n```\n\nWhen `clientId` is set the provider **skips dynamic registration** and authenticates as a public\nclient whose `client_id` is that URL with `token_endpoint_auth_method: \"none\"`. When `clientId`\nis **absent** it falls back to dynamic registration — so the same provider serves both modes.\n\n## Where a static client id can — and cannot — work\n\nThe IdP must **dereference** the `client_id` URL during login. That single fact decides every\ncombination:\n\n| App runs at | IdP | Static client id? |\n|---|---|---|\n| `localhost` | **local CSS** | ✅ `http:\u002F\u002Flocalhost:\u003Cport>\u002Fclientid.jsonld` — CSS's explicit localhost exception (verified) |\n| `localhost` | **live server** (solidcommunity.net, PodSpaces, any hosted IdP) | ❌ **Impossible.** The remote IdP cannot reach your `localhost` document, and rejects non-HTTPS client ids anyway. **Use dynamic registration for this combination** — omit `clientId`. |\n| Deployed (HTTPS) | live server | ✅ The production default — `https:\u002F\u002Fyour-app.vercel.app\u002Fclientid.jsonld` |\n\nSo the development progression is: local dev against local CSS may use the static path;\n**initial testing against live servers from localhost runs with dynamic registration**; the\nstatic client id becomes permanent once the app is deployed to a public HTTPS URL. Don't fight\nthis — no tunnel-free workaround exists, and the failure mode (IdP can't fetch the doc) wastes\nhours if you expect it to work.\n\n## Gotchas\n\n| Gotcha | Symptom | Fix |\n|---|---|---|\n| `client_id` ≠ document URL | *\"The client registration `client_id` field must match the client ID\"* | Make `client_id` equal the served URL byte-for-byte (watch trailing slash, port, `http`\u002F`https`). Deriving it from `request.url` avoids drift. |\n| Missing `webid` scope | Login \"works\" but Pod reads are still 401 \u002F treated as public | Put `webid` (and `openid`) in `scope`. |\n| `redirect_uri` not listed | *\"redirect_uri did not match\"* after deploy | Add the deployed callback (and every environment's callback) to `redirect_uris`. |\n| Wrong \u002F no Content-Type | Some OPs reject the doc (CSS tolerates it) | Serve `application\u002Fld+json`. |\n| HTTP in production | *\"SSL is required for client_id authentication unless working locally.\"* | Use HTTPS for any non-`localhost` client id. |\n| Stale cache after editing the doc | OP keeps using the old metadata | Lower `cache-control max-age`; bump it back up once stable. |\n| Using published `DPoPTokenProvider` and expecting static client_id | Always dynamically registers; no name on consent | 0.1.2 has no hook — use the bundled `WebIdDPoPTokenProvider` with `clientId`. |\n| Static `localhost` client id against a **live** IdP | Login fails — the IdP cannot fetch your document | Impossible combination; use dynamic registration until the app is deployed (see the matrix above). |\n| Dropped doc in `public\u002F*.jsonld` | 404 in `next dev` | Use a route handler (recipe above). |\n",{"name":5,"description":7},"main","5482abfe2666cc12f835fe360e8fad1f1e1dea8c","apps\u002Fissues\u002F.claude\u002Fskills\u002Fsolid-client-id",0,"https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk","https:\u002F\u002Fgithub.com\u002Fjeswr","jeswr.org\u002F#me","@solid Lead @theodi | PhD Candidate @OxfordHCC\r\n\r\n","2026-11-15 05:20:24",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add jeswr\u002Fsolid-sdk --skill solid-client-id",{"tool":39,"command":40},"bunx","bunx skills add jeswr\u002Fsolid-sdk --skill solid-client-id",{"tool":42,"command":43},"pnpm","pnpm dlx skills add jeswr\u002Fsolid-sdk --skill solid-client-id","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fapps\u002Fissues\u002F.claude\u002Fskills\u002Fsolid-client-id\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78FNRF6EV6SKPEYRZ6JTTQ3","storage-conformance","Work on @jeswr\u002Fstorage-conformance, the shared storage conformance suite package in the Solid SDK workspace.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftools\u002Fstorage-conformance\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78FNMS7HQGD9EE43WAFEW6A","fetch-rdf-engine-tests","Maintain fetch-rdf's real Node WASM parser integration tests without introducing a reverse engine dependency in fetch-rdf.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftools\u002Ffetch-rdf-engine-tests\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78FNK5M6ASAR3909JT6BZV1","alpha","Use when checking fixtures, including folded YAML descriptions.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fcheck-skills\u002Fvalid\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78FNGATR8F4N09HWSFVWBAF","widget","Use when testing package skills: YAML quoting works.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fcheck-skills\u002Fvalid\u002Fpackages\u002Fwidget\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M78FN9M05GCHYTK848SSMN9R","web-seo","Use when improving technical and entity SEO for a modern personal, portfolio, documentation, or marketing site, including crawlable HTML, canonical metadata, sitemap and robots, Person\u002FProfilePage JSON-LD, Core Web Vitals, and honest ranking expectations.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fweb-seo\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M78FN5ANETMSPMEFACSJ7JMC","solid-wac","Use when implementing or auditing Solid server WAC authorization, ACL creation and inheritance, auxiliary-resource escalation, method-to-mode mapping, 401 versus 403 challenges, WAC-Allow, or defensive typed ACL parsing with @solid\u002Fobject and @rdfjs\u002Fwrapper.","https:\u002F\u002Fgithub.com\u002Fjeswr\u002Fsolid-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fsolid-wac\u002FSKILL.md",[],[]]