← All Articles
Engineering

Your IAM was built to issue badges. Agents need passports.

Agent identity is not human identity with more rows. Scale, authentication, cross-org trust and lifecycle all break the workforce IAM model. Here’s what works.

Your identity provider knows exactly how many people work for you. Ask it how many AI agents are acting on their behalf, and it has no answer.

That gap is now measurable. In a Cloud Security Alliance survey of 418 IT and security professionals, 82% had found AI agents running in their environment that nobody had told them about, and only 21% had a formal process for retiring an agent once its job was done (CSA, April 2026). Attackers have noticed. SpyCloud’s 2026 Identity Threat Report found that, among organisations that had an identity-related security event, compromised non-human identities were the most common way in: 31%, nearly twice the rate of phishing (SpyCloud, September 2026).

The usual response is to stretch the identity stack we already run. Give the agent a service account. Issue it an API key. Put it in a group. It works for the first ten agents, and then it stops working, because agent identity is not human identity with more rows. It is a different problem with a different shape.

Badges and passports

Workforce identity was designed around the staff badge. HR issues it on your first day. It opens the doors of one building, owned by one company. Security knows your face. When you leave, someone collects it at the exit interview.

An agent’s working life looks nothing like that. It may exist for four minutes. It may be one of ten thousand copies. It calls a supplier’s API, a partner’s agent and a payment service, none of which have ever seen your badge system and none of which can phone your HR team to ask.

What an agent needs is closer to a passport. An authority issues it. It carries its own proof. A border officer in another country can check it without calling the issuer, and the officer decides what the holder may do from the visas stamped inside. The rest of this post walks through the four places where the badge model breaks, and what the passport model looks like in practice.

Scale changes what an identity costs

Workforce identity systems are sized, priced and administered around headcount. Provisioning assumes a ticket, an approver and a joiner workflow. That cost is invisible at a few thousand identities. It is not invisible when one employee’s work fans out across dozens of agents, each running many instances.

The tempting shortcut is a shared service account: one credential, many agents. It keeps the directory small and destroys the audit trail. The log says bot-1 acted. It cannot say which agent, on whose instruction, under which policy. And if one agent misbehaves, the only way to stop it is to rotate the credential and break every other agent that shares it.

Per-agent attribution requires per-agent identity. The architecture has to make an identity cheap enough to mint for every agent, automatically, at the moment the agent is created. We made the governance case for this in Why agent identity is the missing piece in enterprise AI governance; this post is about the architecture underneath it.

Nobody is there to type a password

Every strong factor in workforce authentication assumes a person. Passwords assume memory. MFA assumes a phone in a hand. SSO assumes a browser and a session that ends when someone goes home.

Agents have none of these, so they fall back on bearer secrets: API keys, client secrets and long-lived tokens pasted into configuration. A bearer secret proves only that the caller has the string. Whoever copies it becomes the agent. And bearer secrets are hard to retire. GitGuardian retested secrets it had confirmed as valid in 2022 and found that more than 64% still worked in January 2026 (GitGuardian, March 2026).

Agent authentication has to be non-interactive and based on proof of possession. The agent holds a private key, signs a challenge or a request, and the receiver checks the signature against a public key it can resolve. Nothing reusable crosses the wire.

Agents cross borders your directory can’t see

Workforce federation does reach outside the company, but it is negotiated pairwise. Two organisations exchange metadata, configure trust, and sign a contract before a single user crosses. That model fits a handful of long-lived partner relationships.

Agents form relationships at runtime. A procurement agent may need to prove itself to a supplier it found an hour ago. The supplier’s systems have no account for it, no federation agreement with its employer, and no reason to call back to that employer’s identity provider in the middle of a transaction.

Inside a single trust domain, existing standards serve well: OAuth 2.0 token exchange, OpenID Connect and workload identity schemes such as SPIFFE all do their jobs. The hard case is the boundary between domains that have never met. There, the verifier needs something it can check on its own: an identifier it can resolve, and a credential signed by an issuer it already recognises.

Identities that live for minutes

The joiner-mover-leaver process works because people join and leave slowly. Agents are spawned by workflows, run a task and terminate, sometimes thousands of times a day. An identity that outlives its agent is a standing credential with no owner, which is exactly the “retirement debt” the CSA survey describes.

So the lifecycle has to be automatic at both ends. Identity is minted when the agent is created, its authority is granted for a task or a period, and both are withdrawn when the work stops, without a ticket in a queue.

Comparison table of the staff badge, workforce IAM, against the passport, agent identity. Scale: thousands per headcount versus one per agent at creation. Authentication: password, MFA and SSO versus proof of key possession. Boundary, highlighted: one organisation with pairwise federation versus any verifier with no call home. Lifecycle: joiner and leaver tickets versus retired with the task. Four assumptions that hold for people and break for agents. The boundary is where the badge model fails hardest.

The passport model: identifier, credential, check

The architecture that fits these four constraints has three parts, and each maps onto the passport.

The passport number: a Decentralised Identifier (DID). A DID is an identifier the agent controls, which resolves to a document listing its public keys. Anyone can resolve it, so a verifier in another organisation can check a signature without an account in your directory. Methods such as did:webvh add a verifiable history, so you can prove which key an agent held at a given moment.

The visa: a Verifiable Credential. A credential is a signed statement from an issuer about the agent: who operates it, what it may do, until when. Because it is signed, the agent can carry it anywhere and the verifier can check it offline. Here is the shape of a delegation credential in the W3C Verifiable Credentials 2.0 data model:

{
  "@context": ["https://www.w3.org/ns/credentials/v2"],
  "type": ["VerifiableCredential", "AgentDelegation"],
  "issuer": "did:webvh:{SCID}:example.com:departments:procurement",
  "validFrom": "2026-12-02T09:00:00Z",
  "validUntil": "2026-12-02T17:00:00Z",
  "credentialSubject": {
    "id": "did:webvh:{SCID}:example.com:agents:7f3c2a",
    "actingFor": "did:webvh:{SCID}:example.com:people:alice",
    "permittedActions": ["purchase-order:create"],
    "limit": { "currency": "SGD", "amount": 5000 }
  },
  "credentialStatus": {
    "type": "BitstringStatusListEntry",
    "statusPurpose": "revocation",
    "statusListIndex": "4127",
    "statusListCredential": "https://example.com/status/3"
  },
  "proof": {
    "type": "EcdsaSecp256k1Signature2019",
    "created": "2026-12-02T17:00:00Z",
    "verificationMethod": "did:webvh:{SCID}:example.com:departments:procurement#zQ3shiEH16wHAfbQSSuYB1Lc3KSQC31W4gkaXKa8PgCSz83du",
    "proofPurpose": "assertionMethod",
    "jws": "eyJhbGciOiJFUzI1NksiLCJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdfQ..qjCyJh3FgDkPNyh19NIICW8OR0w_OShLPqeORbAyOu88WOJWeQPbyFIHxCiQ9q3eaUvK0u4Rhd3oGrYkrqYcCQ"
  }
}

The validUntil field and the status list entry are what make the identity short-lived and revocable. The actingFor claim is what lets an auditor answer “on whose behalf?” (AgentDelegation, actingFor, permittedActions and limit are illustrative terms; a production credential would define them in its own context.)

The border check: non-interactive presentation. The agent presents the credential, wrapped in a presentation signed with its own key. The verifier checks three things: the agent’s signature, the issuer’s signature, and whether that issuer is recognised for this kind of claim. That last question goes to a trust registry, the equivalent of the list of passport authorities a border officer accepts.

Flow across two organisations. In your organisation, an issuer issues a verifiable credential to its agent, which holds a DID and the credential. The agent presents a verifiable presentation to the partner organisation's Agent Gateway, highlighted, which runs a trust check against a Trust Registry, marks the presentation verified and forwards the call to the partner API. Identifier, credential, check: a partner verifies the agent and its issuer without calling your identity provider.

You extend your IdP, you don’t replace it

None of this asks you to retire Entra ID, Okta or Active Directory. They stay the source of truth for people. The agent layer sits alongside them.

That is how Agent Gateway works. It validates the OAuth 2.0 and OpenID Connect tokens your identity provider already issues, locally against the provider’s published keys, and derives a stable did:webvh identity for the agent from a validated claim. Humans keep signing in the way they do today. Each agent gets an identity of its own, minted when it first appears, without changes to the agent’s code. Policy is written in Open Policy Agent (OPA) and evaluated on every call against the agent’s identity, its credentials and the request.

The honest caveat is that this is an architectural choice, not a mandate. No regulator requires DIDs or Verifiable Credentials, and inside one organisation OAuth-based workload identity is a reasonable answer. The case for the passport model is strongest exactly where human identity is weakest: across organisational boundaries, at agent scale, for identities that live for minutes.

What this looks like in production

Agent Gateway, part of Affinidi Trust Fabric, has been open source since October 2026 under the Apache 2.0 licence. The current release, v1.0.10, is available on GitHub and hosted through Affinidi Portal. Each agent it governs receives a did:webvh identifier on first resolution. Calls between organisations travel gateway to gateway over DIDComm, where each side checks the other against a trust registry before a request lands. We walked through what that control looks like before an agent acts in Audit logs are a post-mortem. Runtime governance is a pre-flight check.

State diagram of an agent identity: start, a DID is minted and the agent is Identified, a credential is issued and it is Authorised, then it is retired by revocation or expiry, the highlighted state, and the lifecycle ends. Minutes, not months. The identity and its authority should end when the task does.

If you are planning agent identity for 2027, ask four questions of whatever you choose:

  • Can it mint an identity per agent, automatically, at creation?
  • Can an agent prove itself without a shared secret?
  • Can a verifier in another organisation check that proof without calling you?
  • Does the identity, and its authority, end when the agent does?

Badges tell your own doors who works here. Passports tell a stranger who you are and what you are allowed to do. Your agents are going to meet a lot of strangers.

Read the full technical comparison in our deep dive, Agent identity vs human identity.

Sources

Agent identityAgent GatewayDecentralised identifiersVerifiable credentials

Cookie Preferences

We use cookies to enhance your experience. You can manage your preferences below. For more information, read our Cookie Policy.

Strictly Necessary Always Active

These cookies are essential for core website functions such as security, session integrity, and cookie preference storage. They cannot be disabled.

  • _cf_bm: Distinguishes humans from bots (Cloudflare) · 30m
  • _cfuvid: Ensures secure browsing (Cloudflare) · Session
  • __hs_initial_opt_in: Prevents HubSpot's banner · 7 days
  • _gtm_debug: GTM debug mode (testing only) · Session
Analytics

These cookies help us understand how visitors interact with the site so we can improve content and performance. All data is aggregated and anonymous.

  • _ga, _gid, _gat: Google Analytics · Session – 2 years
  • __hstc, hubspotutk, __hssrc: HubSpot visitor tracking · 13 months
  • __hs_opt_out: HubSpot opt-out preference · 6 months
Marketing & Targeting

These cookies allow us and our partners to serve personalised ads and measure campaign performance.

  • _gcl_au, _gcl_dc: Google Ads conversion tracking · 90 days
  • IDE: Google Display Network personalisation · 1 year
  • _fbp: Meta / Facebook remarketing · 90 days
  • li_gc, _li_fat_id, bcookie: LinkedIn tracking · 1–24 months
  • guest_id, personalization_id: Twitter/X analytics · 2 years