Skip to content

chore: sync II spec to dfinity/internet-identity release-2026-08-21 - #350

Merged
marc0olo merged 1 commit into
mainfrom
infra/sync-ii-spec-release-2026-08-21
Aug 24, 2026
Merged

chore: sync II spec to dfinity/internet-identity release-2026-08-21#350
marc0olo merged 1 commit into
mainfrom
infra/sync-ii-spec-release-2026-08-21

Conversation

@pr-automation-bot-public

Copy link
Copy Markdown
Contributor

Summary

Automated sync of the Internet Identity specification from dfinity/internet-identity.

Release: release-2026-08-21 (pinned from 21ab3174c934d1f)

Changed upstream files:

  • docs/ii-spec.mdx

  • Ran npm run sync:ii-spec — regenerated docs/references/internet-identity-spec.md and docs/references/verifiable-credentials-spec.md

  • Build passed ✓

Checklist

  • Review the diff to docs/references/internet-identity-spec.md for content changes
  • Review the diff to docs/references/verifiable-credentials-spec.md for content changes
  • Check for new absolute internetcomputer.org link patterns (script exits non-zero if any were missed)
  • Verify any renamed or restructured sections are reflected correctly

Sync recommendation

sync from dfinity/internet-identity — docs/ii-spec.mdx, docs/vc-spec.md, src/internet_identity/internet_identity.did

@pr-automation-bot-public
pr-automation-bot-public Bot requested a review from a team as a code owner August 24, 2026 13:03
@marc0olo
marc0olo merged commit b21a283 into main Aug 24, 2026
7 of 8 checks passed
@marc0olo
marc0olo deleted the infra/sync-ii-spec-release-2026-08-21 branch August 24, 2026 13:15
aterga pushed a commit that referenced this pull request Aug 24, 2026
main now mirrors the App metadata section (#350 synced
.sources/internetidentity to release-2026-08-21), so the guide can point
at #app-metadata instead of the specification page root.

This commit originally carried the submodule bump and the regenerated
spec files. The rebase dropped them: #350 landed the identical sync
first, so only the anchor change remains.
marc0olo pushed a commit that referenced this pull request Aug 24, 2026
## Summary

- Adds an **App metadata** section to
`docs/guides/authentication/internet-identity.mdx`, between *Alternative
origins* and *Common mistakes*, covering the
`/.well-known/ii-app-metadata` document that lets an app supply its own
name, description, and logo for the Internet Identity sign-in screens.
Nothing in the guide covered it: until now the only way to get branded
screens was to be in the curated list shipped inside II, which this
mechanism replaces.
- Placement is deliberate. The section reuses the derivation origin the
reader has just configured in *Alternative origins* (the document is
fetched from the origin identities are derived for, so an app publishes
it once and all of its alternative origins present the same way), and it
extends the same `.ic-assets.json5` with CORS entries for the document
and the logo.
- Content covers what an integrator has to get right: the field limits
(40 / 120 code points), the raster-only logo rules (same origin, no SVG,
1 MiB, 4096 px per side, re-encoded by II at up to 512 px), the 8 KiB
document cap, `200` with no redirect, and the 10 second budget. It also
states that a single invalid field drops the whole document and that II
names the offending field in the browser console, since that is the
first thing someone debugging missing metadata needs to know.
- Ends with a note that the metadata is exactly as trustworthy as the
origin serving it and verifies nothing about the app, which is why II
keeps the origin on screen next to it.
- Links the specification by anchor (`#app-metadata`) rather than at the
page root.

## Scope

This PR is now a documentation change only:
`docs/guides/authentication/internet-identity.mdx`, +56 / -1.

Earlier revisions of this branch also carried a bump of
`.sources/internetidentity` to `release-2026-08-21` and the regenerated
spec files, because the mirrored specification did not yet have the
section this guide links to. #350 has since landed the identical sync on
main, so rebasing dropped those changes as already applied. The anchor
works against main as it stands.

`docs/references/internet-identity-spec.md` on main now carries the App
metadata section and its JSON Schema, and states the alternative origins
limit as 100 (upstream dfinity/internet-identity#4221 and #4261, both in
`release-2026-08-21`).

## Relationship to #349

#349 (merged) raised the same limit in the guide prose, on line 572.
This branch inserts a section further down, so the two do not overlap.
With #350 also merged, the guide and the specification now agree on 100.

## Structural decisions

- **Heading level.** Added as an `##` section so it sits as a sibling of
*Alternative origins* and *Common mistakes* rather than nesting under
either. The mechanism is independent of alternative origins: apps that
never set a `derivationOrigin` use it too.

## Verification

- Rebased onto main (`b21a283`); the branch is two commits and merges
cleanly.
- `npm run build` passes from a clean `dist/` (exit 0, 210 pages), and
the built `dist/references/internet-identity-spec/index.html` contains
`id="app-metadata"`, so the guide's anchor resolves against main's
mirrored spec.
- `node scripts/validate.js --all`: no errors in the changed file. The 4
reported errors are pre-existing, in
`docs/guides/digital-assets/chain-key-tokens.mdx` and
`docs/guides/backends/data-persistence.mdx`, both untouched here.
- Limits and behaviour in the guide text were taken from the merged
implementation (`src/frontend/src/lib/utils/appMetadata.ts` in
dfinity/internet-identity), not from memory, and match the mirrored spec
section now on main.
- The `:::note` in the new section renders as a plain `div` rather than
a styled callout. So does the page's pre-existing note under
*Alternative origins*: the built page contains no `starlight-aside`
elements at all, so this is existing site behaviour and not something
this change introduces. Left as is to match the page; happy to open a
separate issue if the directive handling should be fixed.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant