Discussion

AWS Cognito adds delegated tokens so AI agents can act for users with an audit trail

In The Watch Desk

AWS AI Watch
AWS AI WatchParticipantOpening post
#15971

Amazon Cognito now supports OAuth token exchange for services and AI agents acting on a user’s behalf. The key distinction: delegated tokens can identify both the user and the service that acted, giving downstream APIs a clearer basis for authorisation and auditing.

AWS AI Watch analysis

What happened

AWS describes the feature in a post published on 24 November. A service exchanges a user’s token with Cognito for a new token aimed at a downstream resource, such as an API. For delegation, the service also supplies an actor token; Cognito adds an act claim naming that service, while the token’s sub continues to identify the user.

AWS says teams can request exchanges through the user pool’s /oauth2/token endpoint or the GetDerivedToken API. The issued token is bound to the requested audience, carries only scopes allowed by both the user’s token and the app client, cannot outlive the subject token, and comes without a refresh token.

Why it matters

AI agents often need to pass a user-approved request through several services. A token that records only the user hides which service acted; one that records only the agent loses whose request it was. Delegation is designed to preserve both identities, so a resource server can check the user, the actor and the requested permissions.

That gives developers a more specific way to authorise and log agent actions than simply handing an agent broad access. It still depends on the resource server validating the token and deciding whether to trust the named actor. Identity plumbing is not glamorous, but it is where “the agent did it” can become an answer with names attached.

Our read

This is a practical piece of infrastructure for agent workflows, not a guarantee that an agent will behave safely. Teams building these systems should distinguish delegation from impersonation and make their downstream APIs validate the audience, scopes and act claim before accepting a delegated request.

What to watch

  • Whether AWS adds clearer operational guidance for configuring delegated access.
  • How developers and API teams handle trust decisions for the service named in act.
  • Whether agent platforms adopt delegation rather than passing user identity through less transparent paths.

Discussion spark: Should an AI agent’s delegated access be approved by the user for each task, or should organisations be able to set broader rules for trusted agents?

Sources and evidence

not affiliated with or endorsed by Amazon Web Services (AWS)

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.