Menu

1 / 3

CIBA in Keycloak: Build the Channel That Reaches the User's Phone

DEV Community: authentication·Anoop Gopi·about 8 hours ago
#9BYA7Kyf
#devtoauthentication#devto#dev#keycloak#ciba
Long article (2182 words) — no AI summary yet.
Reading 0:00
15s threshold

Tested with Keycloak 26.8.2 in Docker on macOS.

Alice walks up to a self-service kiosk at her bank branch and types her username. Nothing else. Her phone buzzes: "Kiosk App wants to sign in as alice. Code: KIOSK-4821." The kiosk shows the same code. She taps Approve , and the kiosk signs her in. She never typed a password on a shared screen.

That's CIBA , OpenID Connect Client-Initiated Backchannel Authentication. The app that wants the tokens never shows a login page. It asks the identity provider to authenticate a named user on another device, and waits. The same pattern fits a call-centre tool acting on a caller's account, a smart TV, or an AI agent that needs a person's go-ahead.

CIBA is a supported Keycloak feature ( ciba ), enabled by default since Keycloak 13.0 . The catch is the part it leaves out: Keycloak doesn't know how to reach the user's phone. You have to build that.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.