[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FKGQ9034EWH1DWH7FVDX5":3,"skill-same:01M78FKGQ9034EWH1DWH7FVDX5":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},"01M78FKGQ9034EWH1DWH7FVDX5","solid-client-id",null,"Use when publishing or debugging a Solid-OIDC Client Identifier Document, choosing static client identity over dynamic registration, fixing redirect_uri mismatches, or configuring a deployed app's stable client name and metadata.","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\u002Fskills\u002Fsolid-client-id\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: solid-client-id\ndescription: Use when publishing or debugging a Solid-OIDC Client Identifier Document, choosing static client identity over dynamic registration, fixing redirect_uri mismatches, or configuring a deployed app's stable client name and metadata.\n---\n\n## Quick reference\n\n\u003C!-- AUTHORED-BY Codex GPT-6.1-Sol -->\n\nFor new suite deployments, use the ADR-004 D7 generator:\n`node scripts\u002Fclient-id.mjs \u003Cconfig.json> \u003Cpublic-directory>`. It writes\n`\u002F.well-known\u002Fsolid-client-id.jsonld` with canonical federation self-description. Read\n[pod-auth's config recipe](..\u002F..\u002Fpackages\u002Fpod-auth\u002FREADME.md#generate-the-suite-client-identifier-document)\nand [package skill](..\u002F..\u002Fpackages\u002Fpod-auth\u002FSKILL.md) for current wiring. The solid-auth-core\nexample below is legacy maintenance guidance; that package is deprecated in favor of pod-auth.\n\n\u003C!-- AUTHORED-BY Codex GPT-5 -->\n**Publish a Solid Client Identifier Document**\nA Client Identifier Document is a dereferenceable JSON-LD document whose URL is the OAuth `client_id`. Prefer it for deployed public clients so the identity provider sees one stable app identity.\n### Required shape\n```json\n{\n  \"@context\": [\"https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld\"],\n  \"client_id\": \"https:\u002F\u002Fapp.example\u002Fclientid.jsonld\",\n  \"client_name\": \"Example App\",\n  \"redirect_uris\": [\"https:\u002F\u002Fapp.example\u002Fcallback\"],\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\u002F\"\n}\n```\n### Rules\n- Make `client_id` equal the served document URL byte-for-byte, including scheme, host, port, path, and trailing slash.\n- Serve production documents over HTTPS with `application\u002Fld+json`.\n- List every permitted callback as an absolute URL in `redirect_uris`.\n- Include `openid webid`; request `offline_access` when the app supports refresh-based restore.\n- Use `token_endpoint_auth_method: \"none\"` for a browser\u002Fpublic client. Do not publish a client secret.\n- Keep the document reachable during login and use a short cache lifetime while changing metadata.\n- Derive environment-specific URLs from one trusted origin input; do not let `.env` precedence produce a localhost client ID in a production build.\n- Register both popup and full-page callback URLs when supporting both flows.\nStatic localhost identity works only when the local identity provider can dereference it and permits loopback HTTP. A remote identity provider cannot fetch the developer's localhost; use dynamic registration or a public HTTPS deployment for that combination.\nDebug exact URL equality first for “client_id must match” errors and the published `redirect_uris` for redirect mismatch errors.\n### Agent persona\nWhen this work is delegated to a sub-agent, spawn the `solid-frontend-dev` persona from\n[`.claude\u002Fagents\u002Fsolid-frontend-dev.md`](..\u002F..\u002F.claude\u002Fagents\u002Fsolid-frontend-dev.md) — it routes through this skill.\nOrchestration: `.claude\u002Fagents\u002Fsolid-app-orchestration.md`.\n\n\u003C!-- AUTHORED-BY Codex GPT-6.1-Sol -->\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[`solid-reactive-authentication\u002Fwebid-token-provider.e2e.md`](..\u002Fsolid-reactive-authentication\u002Freferences\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\u003C!-- AUTHORED-BY Codex GPT-6 -->\n\n## Wiring into the shared auth core\n\nExisting [`@jeswr\u002Fsolid-auth-core`](..\u002F..\u002Fpackages\u002Fsolid-auth-core\u002FSKILL.md) integrations use this legacy API.\nIts `createSolidAuth()` supports a static `clientId` and enforces the resource-origin boundary\nin both provider `matches()` and `upgrade()`. The legacy bundled provider reference does not\nenforce that boundary and must not be copied into a new integration.\n\n```ts\nimport { createSolidAuth } from \"@jeswr\u002Fsolid-auth-core\";\n\n\u002F\u002F Create once for the app lifetime. podRoot is the user's configured storage root.\nconst auth = createSolidAuth({\n  callbackUri: new URL(\"\u002Fcallback.html\", location.href).toString(),\n  clientId: new URL(\"\u002Fclientid.jsonld\", location.href).toString(),\n  authFlow: { getCode: (...args) => ui.getCode(...args) },\n  allowedOrigins: [new URL(podRoot).origin],\n  includeWebIdOrigin: false,\n  includeIssuerOrigin: false,\n});\n\nawait auth.login(webId);\nawait auth.authenticatedFetch(resourceUrl);\n```\n\nAllow only the intended pod resource origin(s); do not add an origin merely because it hosts\nthe WebID or issuer. An empty allowed set attaches credentials to nothing. Use `auth.publicFetch`\nfor foreign\u002Fpublic requests; internal OIDC HTTP stays pinned to pristine fetch. For local CSS\nover loopback HTTP only, explicitly set `allowInsecureLoopback: true`.\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 `createSolidAuth` from `@jeswr\u002Fsolid-auth-core` with `clientId` and explicit resource origins. |\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","## Quick reference\n\n\u003C!-- AUTHORED-BY Codex GPT-6.1-Sol -->\n\nFor new suite deployments, use the ADR-004 D7 generator:\n`node scripts\u002Fclient-id.mjs \u003Cconfig.json> \u003Cpublic-directory>`. It writes\n`\u002F.well-known\u002Fsolid-client-id.jsonld` with canonical federation self-description. Read\n[pod-auth's config recipe](..\u002F..\u002Fpackages\u002Fpod-auth\u002FREADME.md#generate-the-suite-client-identifier-document)\nand [package skill](..\u002F..\u002Fpackages\u002Fpod-auth\u002FSKILL.md) for current wiring. The solid-auth-core\nexample below is legacy maintenance guidance; that package is deprecated in favor of pod-auth.\n\n\u003C!-- AUTHORED-BY Codex GPT-5 -->\n**Publish a Solid Client Identifier Document**\nA Client Identifier Document is a dereferenceable JSON-LD document whose URL is the OAuth `client_id`. Prefer it for deployed public clients so the identity provider sees one stable app identity.\n### Required shape\n```json\n{\n  \"@context\": [\"https:\u002F\u002Fwww.w3.org\u002Fns\u002Fsolid\u002Foidc-context.jsonld\"],\n  \"client_id\": \"https:\u002F\u002Fapp.example\u002Fclientid.jsonld\",\n  \"client_name\": \"Example App\",\n  \"redirect_uris\": [\"https:\u002F\u002Fapp.example\u002Fcallback\"],\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\u002F\"\n}\n```\n### Rules\n- Make `client_id` equal the served document URL byte-for-byte, including scheme, host, port, path, and trailing slash.\n- Serve production documents over HTTPS with `application\u002Fld+json`.\n- List every permitted callback as an absolute URL in `redirect_uris`.\n- Include `openid webid`; request `offline_access` when the app supports refresh-based restore.\n- Use `token_endpoint_auth_method: \"none\"` for a browser\u002Fpublic client. Do not publish a client secret.\n- Keep the document reachable during login and use a short cache lifetime while changing metadata.\n- Derive environment-specific URLs from one trusted origin input; do not let `.env` precedence produce a localhost client ID in a production build.\n- Register both popup and full-page callback URLs when supporting both flows.\nStatic localhost identity works only when the local identity provider can dereference it and permits loopback HTTP. A remote identity provider cannot fetch the developer's localhost; use dynamic registration or a public HTTPS deployment for that combination.\nDebug exact URL equality first for “client_id must match” errors and the published `redirect_uris` for redirect mismatch errors.\n### Agent persona\nWhen this work is delegated to a sub-agent, spawn the `solid-frontend-dev` persona from\n[`.claude\u002Fagents\u002Fsolid-frontend-dev.md`](..\u002F..\u002F.claude\u002Fagents\u002Fsolid-frontend-dev.md) — it routes through this skill.\nOrchestration: `.claude\u002Fagents\u002Fsolid-app-orchestration.md`.\n\n\u003C!-- AUTHORED-BY Codex GPT-6.1-Sol -->\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[`solid-reactive-authentication\u002Fwebid-token-provider.e2e.md`](..\u002Fsolid-reactive-authentication\u002Freferences\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\u003C!-- AUTHORED-BY Codex GPT-6 -->\n\n## Wiring into the shared auth core\n\nExisting [`@jeswr\u002Fsolid-auth-core`](..\u002F..\u002Fpackages\u002Fsolid-auth-core\u002FSKILL.md) integrations use this legacy API.\nIts `createSolidAuth()` supports a static `clientId` and enforces the resource-origin boundary\nin both provider `matches()` and `upgrade()`. The legacy bundled provider reference does not\nenforce that boundary and must not be copied into a new integration.\n\n```ts\nimport { createSolidAuth } from \"@jeswr\u002Fsolid-auth-core\";\n\n\u002F\u002F Create once for the app lifetime. podRoot is the user's configured storage root.\nconst auth = createSolidAuth({\n  callbackUri: new URL(\"\u002Fcallback.html\", location.href).toString(),\n  clientId: new URL(\"\u002Fclientid.jsonld\", location.href).toString(),\n  authFlow: { getCode: (...args) => ui.getCode(...args) },\n  allowedOrigins: [new URL(podRoot).origin],\n  includeWebIdOrigin: false,\n  includeIssuerOrigin: false,\n});\n\nawait auth.login(webId);\nawait auth.authenticatedFetch(resourceUrl);\n```\n\nAllow only the intended pod resource origin(s); do not add an origin merely because it hosts\nthe WebID or issuer. An empty allowed set attaches credentials to nothing. Use `auth.publicFetch`\nfor foreign\u002Fpublic requests; internal OIDC HTTP stays pinned to pristine fetch. For local CSS\nover loopback HTTP only, explicitly set `allowInsecureLoopback: true`.\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 `createSolidAuth` from `@jeswr\u002Fsolid-auth-core` with `clientId` and explicit resource origins. |\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","skills\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\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",[],[]]