scaledockhq/scaledock-skills/ciba
Claude Code and agent skill by scaledockhq/scaledock-skills
- community
Checking that the SKILL.md file is still in the repository.
OpenID CIBA Core 1.0: build and review Client-Initiated Backchannel Authentication, where the client starts sign-in and the user approves on a separate authentication device. Use when implementing or reviewing a CIBA OpenID Provider or client: the backchannel authentication endpoint and request (login_hint, login_hint_token, id_token_hint, binding_message, user_code, requested_expiry, client_notification_token, signed request objects), the auth_req_id acknowledgement, poll, ping and push token delivery with their client registration and discovery metadata (backchannel_token_delivery_mode, backchannel_authentication_endpoint), the urn:openid:params:grant-type:ciba token request, authorization_pending, slow_down, expired_token and access_denied, push-mode ID Token claims (at_hash, urn:openid:params:jwt:claim:auth_req_id, rt_hash), and cross-device approval. Targets CIBA Core 1.0 (Final), upgrades from the Implementer's Drafts and the 2017 MODRNA draft, and tracks the CIBA Core 1.0 errata set 1 draft.
Install
npx vskill@latest install scaledockhq/scaledock-skills/cibaSKILL.md
The same SKILL.md was published earlier as scaledockhq/scaledock-skills/ciba.
CIBA
OpenID Connect Client-Initiated Backchannel Authentication Flow (CIBA) Core 1.0 is an OpenID Foundation specification from the MODRNA working group. The client posts an authentication request straight to the OpenID Provider (OP), without a browser redirect. The user authenticates and consents on an Authentication Device (AD), often a phone, while using the client on a separate Consumption Device (CD). The client then gets the tokens by poll, ping or push (CIBA §1, §2, §3). With this skill the agent builds or reviews a CIBA OP or client that meets the MUST-level rules of the Final specification.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: OpenID Provider (authorization server) or client (relying party), or both.
- Delivery mode: poll, ping or push. A client registers exactly one (CIBA §4, §10).
- User hint:
login_hint,login_hint_tokenorid_token_hint, and where the client gets it. - Profile: plain CIBA, or FAPI-CIBA for high-security APIs, which the
fapiskill covers. - Target version: CIBA Core 1.0 (current, the default; Final, 1 September 2021). CIBA Core Implementer's Draft 2, CIBA Core Implementer's Draft 1 and MODRNA CIBA 1.0 Implementer's Draft 1 are legacy: read them and upgrade from them, never author them. CIBA Core 1.0 errata set 1 draft is a preview (posture: track): do not build OP behaviour from it yet. See `references/versions.md`.
- Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first. Check the MODRNA specifications page and the "Errata Corrections" section of the OpenID specifications list for an approved CIBA errata set, then update the pins.
Invariants
- `openid` scope and exactly one hint. A CIBA request MUST contain the
openidscope and exactly one oflogin_hint_token,id_token_hintorlogin_hint. The OP MUST answer more than one hint withinvalid_request(§7.1, §7.2, §13). - Authenticated client over TLS. The client MUST authenticate to the backchannel authentication endpoint with its registered method, and the endpoint MUST use TLS. With JWT client assertions the client SHOULD use the OP's Issuer Identifier as audience. The OP MUST accept the issuer, the token endpoint URL or the backchannel authentication endpoint URL (§7, §7.1).
- Signed requests carry everything in the JWT. A signed request sends all parameters as claims of an asymmetrically signed JWT. The JWT has
audset to the OP issuer,issset to theclient_id, andexp,iat,nbfandjti. It travels in therequestparameter, and no request parameter may appear outside it. Encrypted requests are not supported (§7.1.1). - `auth_req_id` is unguessable and opaque. It MUST have at least 128 bits of entropy (160 recommended) and use only
A-Z a-z 0-9 . - _. The client MUST treat it as opaque.expires_inis REQUIRED, and a missingintervalmeans 5 seconds (§7.3). - One delivery mode, chosen at registration. The OP MUST deliver the result only through the registered mode. A push client MUST NOT call the token endpoint with the CIBA grant, and the OP answers
unauthorized_client(§4, §10, §11). - Poll politely. The client MUST NOT poll more often than
interval, MUST NOT send overlapping requests for oneauth_req_id, and onslow_downMUST add at least 5 seconds to the interval for all later requests (§10.1, §11). - Callbacks are authenticated by the client's token. For ping and push,
client_notification_tokenis REQUIRED, at most 1024 characters, RFC 6750 bearer syntax, with at least 128 bits of entropy. The client MUST check it on every callback against theauth_req_id(§7.1, §10.2, §10.3.1). - HTTPS callbacks, no redirects.
backchannel_client_notification_endpointMUST be an HTTPS URL. The client MUST NOT answer a callback with 3xx, and the OP MUST NOT follow redirects (§4, §9, §10.2, §10.3.1). - Push binds the tokens in the ID Token. In push mode the ID Token MUST carry
at_hashandurn:openid:params:jwt:claim:auth_req_id, plusurn:openid:params:jwt:claim:rt_hashwhen a refresh token is sent. The client MUST validate the ID Token and all three bindings (§10.3.1). - `auth_req_id` is single-use and client-bound. After a successful token response it is no longer valid. An unknown
auth_req_id, or one issued to another client, getsinvalid_grant(§10.1, §10.1.1, §11). - User codes are never stored. The client MUST NOT store the
user_codeand asks the user for it on each flow (§7.1.2).
Workflow
- Pick the version. Target CIBA Core 1.0. Read older documents as input to an upgrade.
-> `references/versions.md` ✓ The target is CIBA Core 1.0, and nothing is built from a legacy draft or the errata draft.
- Publish and register the metadata. OP: advertise
backchannel_authentication_endpoint,backchannel_token_delivery_modes_supportedand the CIBA grant type. Client: registerbackchannel_token_delivery_mode, the CIBA grant type for poll or ping, and a notification endpoint for ping or push.
-> `references/backchannel-request.md` ✓ The registration matches §4 for the chosen mode, including the pairwise identifier rules if subject_type is pairwise.
- Send the authentication request (client). Authenticate as the client and choose one hint. Add
binding_message,user_code,requested_expiryandclient_notification_tokenas needed, and sign the request if one was registered.
-> `references/backchannel-request.md` ✓ The request has openid, one hint, and no parameters outside the JWT when signed.
- Validate and acknowledge (OP). Authenticate the client, verify the signed request, check the hint and the user, and return
auth_req_id,expires_inandinterval, or an authentication error.
-> `references/backchannel-request.md` ✓ Each §13 error code is reachable, and the acknowledgement passes the §7.3 rules.
- Authenticate the user on the authentication device (OP). Reach the user out of band, honour
acr_values, show thebinding_message, and get an authorization decision as in OpenID Connect Core §3.1.2.4 (§8).
✓ The user sees the same binding message on both devices.
- Deliver the result. Poll or ping: token request with
urn:openid:params:grant-type:ciba. Push: POST the tokens to the notification endpoint.
-> `references/delivery-modes.md` ✓ The client handles every §11 or §12 error code and stops at expires_in.
- Review security and privacy. Check unsolicited requests, binding messages, hint validation, notification endpoint ownership, push-mode bindings, and privacy-friendly identifiers. For FAPI, apply FAPI-CIBA through the
fapiskill.
-> `references/security.md` ✓ Each item in the security checklist has a mitigation or a reason it does not apply.
- Upgrade (only when asked). Follow the steps from the source draft to CIBA Core 1.0.
-> `references/versions.md` ✓ The upgraded OP or client passes the Verify list below, and the delivery mode is unchanged.
Verify before done
- [ ] OP metadata lists
backchannel_authentication_endpointandbackchannel_token_delivery_modes_supported. For poll or ping,grant_types_supportedincludesurn:openid:params:grant-type:ciba(§4). - [ ] A request with two hints, or without
openid, is rejected withinvalid_request(§7.1, §7.2, §13). - [ ] A signed request with a parameter outside the JWT is rejected; the JWT has
aud,iss,exp,iat,nbfandjti(§7.1.1). - [ ]
auth_req_idvalues use only the §7.3 character set and are rejected after one successful redemption (§7.3, §10.1.1). - [ ] A poll faster than
intervalgetsslow_downorinvalid_request, and the client then adds 5 seconds or stops (§11). - [ ] A ping or push callback with a wrong bearer token gets 401 from the client, and no 3xx is ever returned (§10.2, §10.3.1).
- [ ] A push ID Token's
at_hash,urn:openid:params:jwt:claim:rt_hashandurn:openid:params:jwt:claim:auth_req_idmatch the delivered values (§10.3.1). - [ ] A push-mode client calling the token endpoint gets
unauthorized_client(§11). - [ ] Nothing depends on the errata draft's sole-audience rule unless the user opted in (see versions).
Reference index
- `references/versions.md`: every CIBA line, the Implementer's Drafts and the 2017 MODRNA draft, what each changed, the upgrade steps, and the errata set 1 draft. Load for steps 1 and 8.
- `references/backchannel-request.md`: discovery and registration metadata, pairwise identifiers, request parameters, signed requests, user codes, OP validation, the acknowledgement and authentication errors. Load for steps 2 to 4.
- `references/delivery-modes.md`: poll, ping and push, the CIBA grant token request, long polling, callbacks, push ID Token bindings, sender-constrained push tokens, token and push errors. Load for step 6.
- `references/security.md`: CIBA security and privacy considerations, a summary of the FAPI-CIBA constraints, and a review checklist. Load for step 7.
Related skills
openid, for the OpenID Foundation spec index, MODRNA and maturity terms:npx skills add ScaleDockHQ/scaledock-skills --skill openidopenid-connect, for ID Token validation,at_hash, client authentication and Discovery:npx skills add ScaleDockHQ/scaledock-skills --skill openid-connectoauth, for OAuth 2.0 token endpoint errors, mTLS and sender-constrained tokens:npx skills add ScaleDockHQ/scaledock-skills --skill oauthfapi, for the FAPI-CIBA profile and certification:npx skills add ScaleDockHQ/scaledock-skills --skill fapijwt, for signing and validating signed authentication requests:npx skills add ScaleDockHQ/scaledock-skills --skill jwt
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ciba/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scaledockhq/scaledock-skills/ciba)