Session
"It Wasn’t Me, It Was My Agent": Token Exchange Delegation with Keycloak
An appointment gets deleted, a document shared, a deployment stopped. The audit log says: Alice. In fact, it was her AI agent. Agents increasingly act on behalf of users, so every request carries two identities: the person whose data is involved, and the agent that is actually acting. In practice, one of them usually gets lost, because the agent either passes the user’s token through or works with a service account and its own, often overly broad permissions.
OAuth 2.0 Token Exchange (RFC 8693) addresses this with delegation: the token identifies the user as the subject and the agent as the actor. In a live demo, this talk shows with real requests and tokens how Keycloak implements it – from the login with the user’s consent, through the exchange, to the may_act and act claims. We look at when delegation is the right choice and when the direct OAuth flow of MCP authorization is enough, where the limits are for long-running agents and agent chains, and why tokens belong in the harness, not in the model.
Afterwards, it’s clear which pattern fits which architecture and how you do it with Keycloak properly.
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top