internet-identity-sso
БесплатноБез исполняемых скриптовНе проверенSet up an organization's own single sign-on for Internet Identity, so staff sign in to II-powered apps against Okta, Entra ID, Google Workspace or Auth0…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Internet Identity Enterprise SSO
What this is, and who does it
Internet Identity authenticates an organization's staff against its own OpenID Connect provider (Okta, Entra ID, Google Workspace, Auth0). Nothing is registered with Internet Identity: it discovers the configuration from one file on the organization's domain.
This is work an organization's IT administrator does once, on the organization's own domain and identity provider. It is not app code, and no app can do it. The app side is one constructor option, new AuthClient({ ssoDomain: "acme.com" }), documented in the internet-identity skill along with the getSsoStatus() check that tells an app whether a domain has SSO at all.
1. Register an OIDC client
In the identity provider, create an OIDC web application:
| Setting | Value |
|---|---|
| Redirect URI | https://id.ai/callback |
| Grant types | Authorization Code and Implicit (hybrid): II requests response_type=code id_token with response_mode=form_post |
| ID token | Allowed with the implicit grant |
| Access token | Not needed |
| Scopes | openid, profile, email |
2. Publish the discovery file
Serve it over HTTPS at exactly https://<domain>/.well-known/ii-openid-configuration:
{
"client_id": "0oaDEFAULT",
"openid_configuration": "https://acme.okta.com/.well-known/openid-configuration",
"name": "Acme Corp",
"session_max_age_seconds": 28800,
"app_clients": {
"https://payroll.acme.com": "0oaPAYROLL"
},
"gate_all_apps": false,
"stable_identifier_claim": "sub"
}
| Field | Required | Default | Meaning |
|---|---|---|---|
client_id |
yes | The client from step 1 | |
openid_configuration |
yes | The provider's OIDC discovery URL | |
name |
no | the domain | Label on the sign-in screen, and available.name from getSsoStatus() |
session_max_age_seconds |
no | 28800 (8 hours) |
How long a sign-in through this domain stays valid; also caps an app's own session length |
app_clients |
no | none | Maps an app's exact origin, or a salted hash of it, to that app's own client |
gate_all_apps |
no | false |
true refuses apps not listed in app_clients |
stable_identifier_claim |
no | sub |
A claim that is the same for one person across all the organization's clients (Entra ID: oid, since its sub differs per client) |
No CORS header is required: Internet Identity fetches the file server-side, and @icp-sdk/auth checks a domain through II (getSsoStatus()), not from the browser.
The domain users enter is a bare domain such as acme.com, not https://acme.com, acme.com/, or a path.
Per-app access
Give an app its own OIDC client, assign the allowed groups or users to that client in the provider (on Entra ID also set "Assignment required" to Yes), and add one app_clients line keyed by the app's exact origin. A trailing slash, a path, or a different scheme does not match, and the app then silently falls back to the organization's client.
To list an app without naming it in the public file, key it by a salted hash: sha256(origin || salt) as hex, then :, then the salt as hex:
origin=https://payroll.acme.com
salt=$(openssl rand -hex 8)
hash=$(printf %s "$origin$salt" | openssl dgst -sha256 -r | cut -d' ' -f1)
echo "$hash:$salt"
Cleartext and hashed keys can be mixed in one file. Changing stable_identifier_claim on a live domain changes how identities key onto anchors: treat it as a migration, not a config tweak.
Limits: one bad value rejects the whole file
Internet Identity rejects the entire file, not just the offending field, when any of these is exceeded. SSO is then unavailable for the whole domain (getSsoStatus() reads unavailable):
- the file larger than 64 KiB (the same limit applies to the provider's OIDC discovery document);
- more than 100
app_clientsentries; - an
app_clientskey or client id longer than 255 bytes; app_clientskeys and client ids together longer than 16 KiB;client_id,name, orstable_identifier_claimlonger than 255 bytes;session_max_age_secondsof0or above2592000(30 days); it is rejected, not clamped;- in the OIDC discovery document:
issuer,jwks_uri, orauthorization_endpointlonger than 255 bytes.
When changes take effect
Internet Identity caches each domain's discovery result:
- fresh for 1 hour; after that, the next sign-in through the domain starts a refresh and is served the cached result while it runs;
- kept for 7 days past freshness, so a domain signed in through within the week starts from the cache;
- a refresh that fails stops serving the old result 1 hour past freshness, then backs off (60 s, doubling) before retrying.
So removing an app_clients entry or enabling gate_all_apps applies after the next refresh, normally within an hour of active use; the first sign-in after a quiet period is checked against the cached result while the refresh runs. The provider's signing keys (J
Установить internet-identity-sso в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл internet-identity-sso?
Set up an organization's own single sign-on for Internet Identity, so staff sign in to II-powered apps against Okta, Entra ID, Google Workspace or Auth0. Nothing registers with II: it discovers the configuration from /.well-known/ii-openid-configuration on the organization's domain. Covers the OIDC client, the discovery file and every field, per-app clients including salted-hash keys, gate_all_apps, stable_identifier_claim, the limits that reject the whole file, and II's caching windows. Use when an organization wants its employees to sign in with its own identity provider, when II offers no SSO for a domain that has published the file, or when an edit to that file has not taken effect yet. This is the organization's side, done by whoever administers the domain. For an app sending users there with ssoDomain, load internet-identity. Do NOT use for signing in to II with a personal Google, Apple or Microsoft account, which is ordinary OpenID and needs none of this.
Как установить скилл internet-identity-sso?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл internet-identity-sso запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic