Skip to content
Merged
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
9 changes: 9 additions & 0 deletions evaluations/internet-identity.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@
"States the consequence is losing the WHOLE document, not just the logo, because the logo URL's same-origin shape is part of document validation",
"Recommends a relative URL such as /logo.png"
]
},
{
"name": "Adversarial: maximum number of alternative origins",
"prompt": "My IC frontend lists white-label custom domains in ii-alternative-origins and the list keeps growing. State the exact maximum number of entries allowed, and say what happens to sign-in if I push the file past that maximum. 3 sentences max, no setup steps, no DNS.",
"expected_behaviors": [
"States the maximum is 100 alternative origins",
"Says exceeding the cap invalidates the ENTIRE list — every alternative origin stops authenticating, not just the entries past the limit",
"Does NOT describe the over-cap behavior as truncation, ignoring the extras, or only the excess entries failing"
]
}
],
"trigger_evals": {
Expand Down
4 changes: 3 additions & 1 deletion skills/internet-identity/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ const authClient = new AuthClient({
{ "alternativeOrigins": ["https://shop.example.com"] }
```

A maximum of 10 alternative origins can be listed. Entries are origins — no trailing slashes and no paths.
A maximum of **100** alternative origins can be listed. Entries are origins — no trailing slashes and no paths.

Going over the cap is not a truncation: II rejects the entire list with `has too many entries: To prevent misuse at most 100 alternative origins are allowed`, so **every** alternative origin stops authenticating, not just the ones past the limit.

**3. With `@dfinity/static-site`, add a `_headers` block.** `.well-known/` is uploaded automatically, but this file has no extension, so its media type is not `application/json`, and the certified-assets canister sets no CORS header by default. II needs both:

Expand Down
Loading