
This is your reference for adding Internet Identity authentication to ICP apps. It covers passkey and OpenID sign-in flows, delegation handling, and principal-per-app isolation. The bulk of the value is in the "Mistakes That Break Your Build" section, which walks through the twelve ways developers typically break II integration: wrong URLs, missing /authorize paths, bad nonce handling, and skipping signer verification when reading attributes. The local dev setup is straightforward since icp-cli 0.2.4, mainnet II just works against your local replica without extra config. If you're adding login to a frontend or need to understand how attribute bundles work on the backend, this covers it.
$ npx -y skills add dfinity/icskills --skill internet-identity --agent claude-codeInstalls into .claude/skills of the current project.
Internet Identity (II) is the Internet Computer's native authentication system. Users sign in to II-powered apps with passkeys, with an OpenID account (Google, Apple, Microsoft), or through their organization's own SSO; no usernames or passwords. Each user gets a unique principal per app origin, preventing cross-app tracking.
@icp-sdk/auth@^11 with @icp-sdk/core@^6. Pin both majors together. auth 11 and 10 peer @icp-sdk/core@^6; auth 9 peers ^5.| Canister | ID | URL | Purpose |
|---|---|---|---|
| Internet Identity (backend) | rdmx6-jaaaa-aaaaa-aaadq-cai | What sign-in runs against; signs attribute bundles | |
| Internet Identity (frontend) | uqzsh-gqaaa-aaaaq-qaada-cai | https://id.ai | Serves the sign-in UI; authorizeUrl points here |
Both IDs are identical on mainnet and on a local network. Hardcode them.
Sponsors