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
openidscope and exactly one hint. A CIBA request MUST contain theopenidscope 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_idis unguessable and opaque. It MUST have at least 128 bits of entropy (160 recommended) and use onlyA-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_idis single-use and client-bound. After a successful token response it is no longer valid. An unknownauth_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 ifsubject_typeispairwise. - 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 hasopenid, 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 atexpires_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.
- OpenID Connect Client-Initiated Backchannel Authentication Flow - Core 1.0: Final, 1 September 2021, checked 2026-10-05.
- CIBA Core 1.0 - draft 06 incorporating errata set 1: Draft (proposed errata), published 23 January 2025, checked 2026-10-05. Draft posture: track.
- CIBA Core 1.0 draft-04: Draft, 4 June 2021, the last draft before Final, checked 2026-10-05.
- CIBA Core 1.0 Implementer's Draft 2: Implementer's Draft, draft-03 (22 January 2020), checked 2026-10-05.
- CIBA Core 1.0 Implementer's Draft 1: Implementer's Draft, draft-02 (16 January 2019), checked 2026-10-05.
- OpenID Connect MODRNA Client initiated Backchannel Authentication Flow 1.0: Implementer's Draft 1 (same document as the
-ID1URL), 6 March 2017, replaced by CIBA Core, checked 2026-10-05. - OpenID Specifications: index page; lists CIBA Core under MODRNA Final Specifications and has no CIBA entry under Errata Corrections, checked 2026-10-05.
- MODRNA Working Group: working group page, checked 2026-10-05.
- MODRNA Working Group Specifications: index page; lists CIBA Core as Final and draft 06 incorporating errata set 1 under Drafts, checked 2026-10-05.
- FAPI: Client Initiated Backchannel Authentication Profile: Implementer's Draft, ID1 (labelled Draft-02, 15 August 2019), checked 2026-10-05.
- FAPI Client Initiated Backchannel Authentication Profile (working copy): Draft, published 26 June 2026, checked 2026-10-05.
- RFC 6749: The OAuth 2.0 Authorization Framework: RFC (Proposed Standard), RFC 6749, checked 2026-10-05.
- RFC 8414: OAuth 2.0 Authorization Server Metadata: RFC (Proposed Standard), RFC 8414, checked 2026-10-05.
- RFC 8628: OAuth 2.0 Device Authorization Grant: RFC (Proposed Standard), RFC 8628, checked 2026-10-05.