🚀 Agent2Agent Protocol, IBM Vault, & OAuth 2.0 On-Behalf-Of
I wrote a blog on using AI agent authorization with Agent2Agent protocol and IBM Vault that focused on setting up Vault as an OIDC provider to authenticate and authorize requests from an Agent2Agent client to a server. While it works, the post missed something rather critical: identity delegation. Basically, if I am an end user, I want to delegate my Agent2Agent (A2A) client to act on my behalf to access the A2A server. It turns out a number of folks in the agent identity space Microsoft Entra Agent ID, Christian Posta) have been exploring and implementing RFC 8693: OAuth 2.0 Token Exchange as a way of facilitating and tracking identity delegation. At the time of this post, Vault did not have a secrets engine that that implemented this specification - so I did it as a proof of concept for my own education and knowledge. I ended up creating a Security Token Service (STS) with a custom Vault secrets engine that implements RFC 8693. Step 1: get a subject token from Vault as OIDC provider The general workflow for delegating identity required me to read the specification a few times. First, the end user authenticates to the client agent using an OIDC provider to get a subject token. I set up Vault as an OIDC provider to support a may-act OIDC scope. This scope attaches a mayact claim to the idtoken with a list of client agents allowed to act on the user's behalf. locals { mayactscopename = "may-act" mayactclaim = jsonencode([for agent, info in var.clientagents : { client_i...
👉 Read more: https://dev.to/joatmon08/agent2agent-protocol-ibm-vault-oauth-20-on-behalf-of-1hba
