An agent runs unattended as a cloud workload and calls APIs at two other companies on a user's behalf. How do you give it an identity and authorise each hop without static API keys, and where does human approval come in?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
This is the sequel to the on-behalf-of answer: there is no live user session to exchange, and two of the three hops are in someone else's trust domain. The design that is converging, written up in the IETF WIMSE working group's agent identity draft (draft-ietf-wimse-aims, adopted September 2026, Informational, still an Internet-Draft rather than a standard), mostly profiles standards you already know.
Full worked answer with diagram
This is the sequel to the on-behalf-of answer: there is no live user session to exchange, and two of the three hops are in someone else's trust domain. The design that is converging, written up in the IETF WIMSE working group's agent identity draft (draft-ietf-wimse-aims, adopted September 2026, Informational, still an Internet-Draft rather than a standard), mostly profiles standards you already know.
The agent is a workload. It gets exactly one workload identifier, which may be a SPIFFE ID, issued by the platform from attestation of where it runs, not from a secret someone pasted into config. Its credentials expire and are short-lived. The draft calls static API keys an antipattern, and it is explicit that the LLM must not have access to the agent's credentials: a broker or sidecar holds them and attaches them to calls, so nothing exfiltrable sits in the context window.
Authentication. mTLS where you have a service mesh. Where transport-layer protection is not enough or not available, WIMSE Workload Proof Tokens or HTTP Message Signatures.
Authorisation inside your domain. OAuth, with the agent's identity as client_id and the user as sub when it acts for them, so every token names both principals. Sender-constrain tokens with mTLS or DPoP so a stolen token is useless elsewhere. Between your own microservices, use transaction tokens rather than forwarding the access token, which the draft treats as an anti-pattern.
Crossing into company B and company C. Use OAuth identity and authorisation chaining across domains, including the Identity Assertion JWT Authorization Grant: your authorisation server issues an assertion about the agent and user, and each partner's authorisation server exchanges it for a token valid only in its own domain. Downscope at every hop, so company C's token carries only what that call needs, not the union of the task.
Delegation without a present user. The user granted consent earlier, recorded as a grant with explicit scope and expiry. The agent obtains tokens from that grant, and each use is logged against it. Revoking the grant stops the agent everywhere.
Human approval. For high-impact steps, approval goes out of band, for example through CIBA (Client-Initiated Backchannel Authentication) to the user's own device. The draft says the agent must not treat local UI confirmation alone as sufficient authorisation, which matches the security reasoning: a confirmation the agent renders is a confirmation an injected agent can fake.
Revocation and audit. OpenID Shared Signals Framework events (CAEP, RISC) let one domain tell the others that a session or credential is revoked. Audit records must carry at least the agent identifier, the delegated subject, the resource and the decision, in every domain, so a cross-company incident can be reconstructed.
Worth sketching. Optional, but the hops show where each token is minted and why none of them reach the model.
sequenceDiagram
participant G as Agent workload
participant K as Credential broker
participant A as Your auth server
participant B as Partner auth server
participant P as Partner API
participant U as User device
G->>K: attested workload identity
K->>A: request token, client agent, sub user
A-->>K: assertion for partner domain
K->>B: exchange assertion for downscoped token
B->>U: CIBA approval for high-impact step
U-->>B: approved
B-->>K: sender-constrained token
K->>P: call with token, model never sees it
What a good answer covers
- This is the sequel to the on-behalf-of answer
- The design that is converging, written up in the IETF WIMSE working group's agent identity draft…
- It gets exactly one workload identifier, which may be a SPIFFE ID, issued by the platform from…
- Its credentials expire and are short-lived
- The draft calls static API keys an antipattern, and it is explicit that the LLM must not have access to…
Key terms: The agent is a workload · Authentication · Authorisation inside your domain · Delegation without a present user · Human approval · Revocation and audit
Interviewer follow-ups to expect
Where does the user's standing consent live, and how do you show them what an unattended agent has done with it?
A partner does not support token exchange and offers only API keys: what do you accept and what compensating controls do you add?
How would you revoke an agent across three domains within a minute?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep