Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .mintlify/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

- Write all published pages, maintenance notes, commit messages, and PR descriptions in English.
- Follow the existing MDX, navigation, branding, and terminology conventions. Register pages in `docs.json`; reuse existing snippets and components when they fit.
- Explain concepts in short paragraphs, setup in numbered steps, and guide choices with links or cards. Use tables when readers need to compare the same fields or look up values. Introduce each table with a short explanation of the comparison or decision it supports.
- State what an integration returns, what the developer must validate, and what the application must enforce. Replace vague phrases such as "trust layer" or "enforce eligibility" with the specific behavior needed at that point.
- Use World Money for wallet, payment, and Mini App flows hosted in that app. Use World ID app for identity verification, credential management, and proof requests. Preserve historical World App references and exact SDK names, fields, and URL schemes such as `window.WorldApp` and `worldapp://`. See the official [World Money](https://world.org/world-money) and [World ID app](https://world.org/world-id-app) descriptions.
- Document durable product behavior, public contracts, and necessary integration setup. Keep implementation walkthroughs, operational runbooks, and PR history out of published pages.
- Keep changes focused. Preserve coverage of the rest of the site when extending maintenance to IDP. Explain any necessary edits outside the affected product area.
- Keep commit subjects and PR titles short. Follow the repository's PR template. If there is no template, use `Summary` with one to three bullets and `Testing` with commands and outcomes or `Not run`.
Expand All @@ -11,6 +14,8 @@

Keep Agent Pass in `docs.json` as a tab with `hidden: true` and `searchable: true` during MCP testing. Preserve its complete groups and page list so direct links retain the internal sidebar. Keep the scoped Agent Pass tab rules in `tailwind.css`: Mintlify otherwise reveals the hidden tab when it is active. Keep the generated `agent-pass/` pages, their URLs, agent-only homepage link, and `seo.indexing: "all"` so they remain available to search and AI tools. Do not make the tab or promotional cards visible until the public launch is requested. Read [IDP maintenance](world-id-auth-maintenance.md) before changing generated pages. Use the manifest, source lock, and compatibility contract for current coverage and provenance.

The approved capabilities navigation adds a visible World ID integration comparison and `world-id/agent-pass.mdx` entry. Home's authentication capability links to that World ID comparison. Preserve these entry points while keeping the standalone Agent Pass tab hidden and searchable; they do not change the generated guide bodies or their release status.

- Keep `worldcoin/temporal-apps/apps/idpapi/mcp/guides/*.md` as the canonical guide text shared by the Auth browser documentation, MCP, and the generated Mintlify pages. Make content changes in those Markdown files, then regenerate. The landing page in `apps/idpportal/docs.html` is excluded from this migration.
- Do not edit generated `agent-pass/*.mdx` bodies directly. Keep publishing metadata and approved adaptations in `.mintlify/world-id-auth-pages.json` and `scripts/sync-world-id-auth.mjs`. Record the source commit in `.mintlify/world-id-auth-source.json` through the generator.
- Read relevant source diffs and the complete canonical guides. Preserve all sections, tables, examples, limitations, errors, and instructions when converting them to MDX. If code, canonical text, and generated pages disagree, identify the conflict for review and correct the source or converter.
Expand Down
13 changes: 13 additions & 0 deletions .mintlify/docs-capabilities-plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Capabilities and navigation

First phase of the approved documentation proposal. Keep the Agent Pass guide bodies and publisher unchanged.

- [x] Reuse the Home landing cards to lead with capabilities and keep human/agent exports aligned.
- [x] Preserve the World ID explanation and credentials, then add four linked integration cards and an IDKit/World IdP comparison at the end of the overview. Add a World ID sidebar entry pointing to the existing Agent Pass guides.
- [x] Move Address Book ownership to World Chain, preserving the old route and updating consumers.
- [x] Group the complete World Chain and Mini Apps navigation under the native Others menu.
- [x] Check navigation coverage, redirects, links, MDX syntax and spelling within two minutes total. Browser QA and full builds are skipped.

The hidden, searchable Agent Pass tab and its complete navigation stay in place. The approved World ID reference is a deliberate discovery entry, not a standalone tab launch. Keep existing CSS hiding that tab.

Deliver this phase in a separate draft PR against main. Agent Pass reading improvements belong to the next phase.
6 changes: 6 additions & 0 deletions .mintlify/world-id-auth-maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ The JSON files above live in `.mintlify/`; script and workflow paths are relativ
- Change product guidance in the canonical Markdown, then regenerate. Do not edit generated `agent-pass/*.mdx` bodies independently.
- Preserve complete sections, tables, examples, errors, limitations, and agent instructions, including everything after `Agent instructions`. Auth's HTML may omit agent-only sections; its raw Markdown and MCP are the complete sources.
- Use the manifest for renamed routes, old heading aliases, and approved layout adaptations. Keep existing public URLs useful when the source reorganizes or merges topics. Do not restore obsolete product guidance merely to retain an old route.
- The Quickstart's `quickstartLayout` adaptation renders linked icon cards, environment URLs as JSON, and IDKit guidance matching the World ID overview. The registration guide's `clientAuthenticationExamples` adaptation renders credential and JWT examples. Both retain the canonical text in the agent export and require review when their source structure changes. Keep these adaptations in the publisher and regenerate; do not edit the generated twins.
- The backend guide's `oidcExamples` adaptation uses native code groups for decoded request fields and tabs for polling responses and troubleshooting. JSON blocks show decoded values, not the form-encoded wire body. Preserve the endpoint, encoding instructions, and every response-handling rule alongside these examples; the agent export retains the canonical requests and tables.
- The identity guide's `credentialCards` adaptation uses the existing Proof of Human and Proof of Presence artwork with a passkey tile. Keep credential guarantees and baseline `acr` values from the canonical table. Passkeys authenticate account control and add no biometric uniqueness or Face Auth; preserve the original table in the agent export.
- The registration guide's `benefitPublishing` adaptation shortens the Catalog walkthrough while retaining the canonical reference for agents. Its screenshot, `images/agent-pass/catalog-submit-review.jpg`, was captured from the production portal on 2026-11-13. It shows the empty listing form and submission controls, cropped to exclude account details and credentials. Recapture it when that UI changes; do not substitute a Mini App submission image.
- Preserve production and sandbox examples separately. Resolve production `{{issuer}}` to `https://auth.world.org`; keep documented sandbox values on `https://sandbox.auth.world.org`.
- The public adaptation of `world-id-users.md` changes its introduction for public readers. It does not remove authorization from Auth's user guide or account tools.
- Review Autopilot's IDP proposals against the canonical source and apply accepted content corrections there before publishing. The publisher transports that reviewed Markdown; independent edits to generated IDP pages will be overwritten. Autopilot can continue maintaining other product areas.
Expand Down Expand Up @@ -54,6 +58,8 @@ Automatic synchronization is active only after the workflow is merged to `main`,

Agent Pass stays in `docs.json` as a tab with `hidden: true` and `searchable: true` while its published content is tested through World Docs MCP. Keep the complete groups and page list so direct links retain the internal sidebar. Mintlify reveals hidden tabs when active, so scoped rules in `tailwind.css` also hide Agent Pass from desktop and mobile tab switchers. Keep these rules in place and promotional cards hidden until launch. Keep all generated pages and `seo.indexing: "all"`; do not add `noindex` or exclude `agent-pass/` from publication. Pages remain public at their existing URLs and can appear in search. Keep the homepage's agent-only link and technical MCP references for discovery. See [Mintlify hidden pages](https://www.mintlify.com/docs/organize/hidden-pages).

World ID Overview now compares IDKit and World IdP and links to the approved `world-id/agent-pass.mdx` entry. The Home authentication capability leads to this comparison. These visible discovery entries do not make the standalone Agent Pass tab visible or alter the generated guides.

The public documentation routes use `/agent-pass/`. Redirects in `docs.json` preserve the former `/world-id-auth/` HTML and raw Markdown page URLs and send both documentation roots to `/agent-pass/quickstart`. Keep the internal `world-id-auth` configuration and script filenames unchanged.

Continue dual publication. Use the compatibility contract for the actual route/resource map, including the legacy `mcp-oauth` alias and trailing-slash variants. Keep Auth's existing routes on their production or sandbox hosts:
Expand Down
5 changes: 5 additions & 0 deletions .mintlify/world-id-auth-pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"sidebarTitle": "Quickstart",
"description": "Register an application, connect to the World ID issuer, and add step-up authentication.",
"environmentNote": true,
"quickstartLayout": true,
"anchorAliases": {
"choose-your-integration": [
"how-it-works",
Expand All @@ -22,11 +23,14 @@
"destination": "agent-pass/app-registration.mdx",
"title": "Register your application",
"sidebarTitle": "Register your application",
"clientAuthenticationExamples": true,
"benefitPublishing": true,
"description": "Register and manage your World ID OIDC application, credentials, callbacks, and benefit listing."
},
{
"source": "oidc.md",
"destination": "agent-pass/connect-your-backend.mdx",
"oidcExamples": true,
"title": "Connect your backend",
"sidebarTitle": "Connect your backend",
"description": "Connect your backend to the World ID issuer with OpenID Connect (OIDC).",
Expand Down Expand Up @@ -72,6 +76,7 @@
{
"source": "id-token.md",
"destination": "agent-pass/id-tokens-and-identity.mdx",
"credentialCards": true,
"title": "ID tokens and identity",
"sidebarTitle": "ID tokens and identity",
"description": "Validate token claims, read UserInfo, and recognize accounts using the issuer and pairwise subject."
Expand Down
10 changes: 5 additions & 5 deletions .mintlify/world-id-auth-source.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"repository": "worldcoin/temporal-apps",
"sourceDirectory": "apps/idpapi/mcp/guides",
"configSha256": "4e8b3a998e58efee93b7d618df31d9aa6622faeb2c2500f46e842e54f961f915",
"configSha256": "6c2e367a6aa3083bf2be9033e54df069b603f1905b5b26d6c0e7bc94cb9865ba",
"sources": {
"apps/idpapi/mcp/guides/getting-started.md": "562496424aed6fa2bc19bdde442eb2b9b4f370c974c92c2c4f11c35a4d9c0fb7",
"apps/idpapi/mcp/guides/app-registration.md": "f96c7a898d5198dc39587d7720d1a907a1ad6813ed444f944b36ecc242dc96a3",
Expand All @@ -15,11 +15,11 @@
"apps/idpapi/mcp/guides/testing.md": "defe6bf677aec7a6f0ab7ad1ad8cda60dc4c1f5122bbb7cd6c17e4731328932a"
},
"outputs": {
"agent-pass/quickstart.mdx": "ff0a735471be230f6acf560ed0cf7401ad5d70e65f94a2ba62f41d330db6ac13",
"agent-pass/app-registration.mdx": "48fddef9720ba67ddfe02d61d4168ea13ac32ca061cae17bc0567a0b5b5c3f7b",
"agent-pass/connect-your-backend.mdx": "ff499c3d536bcbb8058696188c2ff406153522c3770f7374c6423bc085dc8966",
"agent-pass/quickstart.mdx": "870bbcae12fc69400ce13b557336fe3686f0e4425d5194766de9c8564bef34d6",
"agent-pass/app-registration.mdx": "b6a6020857e9df27fd1b257d987702a0d9e7dad20f7bb1a6668d9fd6337ade36",
"agent-pass/connect-your-backend.mdx": "6c9159afaf784862b01c6237848dcfd65d3efd85f1d7da081769418ec8e7f823",
"agent-pass/connect-your-auth-server.mdx": "cddab629cdadbef4d154fa719b223954d16f69c241a0d87d21bf191ac2065d1a",
"agent-pass/id-tokens-and-identity.mdx": "e7c416ec0adf5273d1d2b62b9fc1e560e4e9468f15cff3775388311e2e0f777e",
"agent-pass/id-tokens-and-identity.mdx": "2f58eae9c7ee766105df16bebdb92940969aee67e7b09f980a1a6c57170c289e",
"agent-pass/step-up.mdx": "3ee436eeb2a18353dc43de69d093e71a027a379f759475e77f6b659d843a7aa2",
"agent-pass/human-in-the-loop.mdx": "deb04082440ad78c9f4ce74d55348768c3e946809d86fd305da439a18f29c923",
"agent-pass/xaa.mdx": "d0174c6493980c150b2859cc57458da5672c9c40c3de25deb7b5392cc4010a2c",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Source for the official World developer documentation, published at **[docs.worl

- **World ID** (`world-id/`) — IDKit SDKs (JS, React, Swift, Kotlin, Go), Credentials, Selfie Check, on-chain verification, API reference.
- **Agent Pass** (`agent-pass/`) — OIDC integration, identity, step-up authentication, agent delegation, user connections, and developer MCP tools. See [IDP maintenance](.mintlify/world-id-auth-maintenance.md) for source ownership and publishing.
- **Mini Apps** (`mini-apps/`) — building applications that run inside World App, including commands, sharing, growth, and the MiniKit reference.
- **Mini Apps** (`mini-apps/`) — building applications that run inside World Money, including commands, sharing, growth, and the MiniKit reference.
- **World Chain** (`world-chain/`) — quick start, provider integrations, tokens, and developer reference for the chain.
- **MCP servers** (`model-context-protocol/`) — World's Model Context Protocol integrations (developer portal, world-docs).
- **OpenAPI specs** (`openapi/`) — machine-readable specs for the World ID and Developer Portal APIs.
Expand Down
99 changes: 99 additions & 0 deletions agent-pass/app-registration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,83 @@ for requests that omit both `acr_values` and an `acr` claim request.

## Client authentication {#client-authentication}

<Visibility for="humans">

Authenticate at the token and device authorization endpoints with your registered
method. These examples show credential fragments only. Add the fields required
by your grant, such as `grant_type`, an authorization code and PKCE verifier, or
`device_code`, and use a form encoder for the request body.

For Basic authentication, form-encode the client ID and secret separately, join
them with `:`, then Base64-encode that string as `<base64-credentials>`. The body
`client_id` shown below is optional; when supplied, it must match the Basic
credentials. For POST and JWT authentication, omit the `Authorization` header.
Replace every placeholder with the indicated encoded value.

{/* cspell:disable */}
<CodeGroup>
```http title="client_secret_basic (portal default)"
Content-Type: application/x-www-form-urlencoded
Authorization: Basic <base64-credentials>

client_id=<form-encoded-client-id>
```

```http title="client_secret_post"
Content-Type: application/x-www-form-urlencoded

client_id=<form-encoded-client-id>&client_secret=<form-encoded-client-secret>
```

```http title="private_key_jwt"
Content-Type: application/x-www-form-urlencoded

client_id=<form-encoded-client-id>&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=<form-encoded-signed-compact-assertion>
```
</CodeGroup>
{/* cspell:enable */}

For `private_key_jwt`, register the public JWKS in the portal and keep the private
key in your backend. Use a JWT library to sign the header and payload below as
a compact RS256 assertion. These are illustrative decoded values, not a signed
assertion or reusable credentials.

```json title="JWT header"
{
"alg": "RS256",
"kid": "<registered-rsa-key-id>"
}
```

`kid` selects a registered RSA key of 2048–8192 bits. Omit `kid` only when exactly
one key is registered.

```json title="JWT payload"
{
"iss": "<client-id>",
"sub": "<client-id>",
"aud": "https://auth.world.org",
"iat": 1790000000,
"exp": 1790000300,
"jti": "<unique-value-for-this-request>"
}
```

Set both `iss` and `sub` to your client ID. Use a single audience: the issuer shown
above or the exact endpoint being called. Generate current `iat` and `exp` values
for each request, with `exp` at most one hour after `iat`, and a unique `jti` of
at most 256 bytes. Expiration is strict; `iat` and optional `nbf` allow 30 seconds
of clock skew.

Use a fresh assertion for every request, retry, and device poll, including after
`authorization_pending`. Assertions are single-use across endpoints. A rejected
assertion returns HTTP 400 `invalid_client`.
Keep request bodies, Authorization headers, and callback query strings out of logs.

</Visibility>

<Visibility for="agents">

Authenticate at the token and device authorization endpoints with the client's
registered method:

Expand All @@ -74,6 +151,8 @@ Use a fresh assertion for every request, retry, and device poll, including after
assertion returns HTTP 400 `invalid_client`.
Keep request bodies, Authorization headers, and callback query strings out of logs.

</Visibility>

## Manage credentials and callbacks {#manage-credentials-and-callbacks}

When rotating credentials, keep the old secret or key active until the new one works;
Expand Down Expand Up @@ -132,6 +211,24 @@ and private keys outside agent conversations. The

## Publish a benefit listing {#publish-a-benefit-listing}

<Visibility for="humans">

Open your app's **Catalog** tab in the [developer portal](https://auth.world.org/portal).

1. Add a listing name, description, and HTTPS benefit URL, separate from your OIDC callback.
2. Add optional public **Instructions** explaining how to claim. Exclude credentials and tokens.
3. The owner selects **Submit for review**.

![Catalog tab showing the benefit listing fields and Submit for review below Instructions](/images/agent-pass/catalog-submit-review.jpg)

Only approved, published listings for active clients appear in `get_benefits`.
Updates can take one minute; changing Instructions requires another review.
Your app enforces eligibility, authorization, and redemption.

</Visibility>

<Visibility for="agents">

If your application offers a World ID benefit, create a Catalog listing for its
OIDC client in the developer portal. Add a name, description, and HTTPS application
URL. The optional **Instructions** (`instructions`) field can include steps to
Expand All @@ -145,3 +242,5 @@ Agents use the instructions to understand the partner's preferred claiming
flow, or start at the app URL if no instructions are supplied. Your application
enforces eligibility, authorization, and redemption. The application URL is
separate from the OIDC callback.

</Visibility>
Loading
Loading