{"id":253518,"date":"2026-11-25T00:48:10","date_gmt":"2026-11-25T00:48:10","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/253518\/"},"modified":"2026-11-25T00:48:10","modified_gmt":"2026-11-25T00:48:10","slug":"aws-explains-how-to-trace-ai-agents-delegated-access-with-cognito","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/253518\/","title":{"rendered":"AWS explains how to trace AI agents\u2019 delegated access with Cognito"},"content":{"rendered":"<p class=\"story-lede\">An API receiving an AI agent\u2019s request can see both the user being represented and the service acting for them. AWS\u2019s <a href=\"https:\/\/aws.amazon.com\/blogs\/security\/delegate-user-access-to-ai-agents-with-amazon-cognito-token-exchange\/?utm_source=superpowerdaily-com&amp;utm_medium=referral&amp;utm_campaign=aws-explains-how-to-trace-ai-agents-delegated-access-with-cognito&amp;utm_content=article-link-1\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">November 24 guide<\/a> explains how to configure that distinction in Amazon Cognito, using token exchange to carry identity and limited permissions into the next service rather than simply forwarding the user\u2019s original access token.<\/p>\n<p>The feature itself launched on November 12, 2026. The new guide explains how to use it when agents call tools that, in turn, call other APIs. AWS\u2019s <a href=\"https:\/\/aws.amazon.com\/about-aws\/whats-new\/2026\/11\/cognito-token-exchange?utm_source=superpowerdaily-com&amp;utm_medium=referral&amp;utm_campaign=aws-explains-how-to-trace-ai-agents-delegated-access-with-cognito&amp;utm_content=article-link-2\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">launch announcement<\/a> lists availability on Cognito\u2019s Essentials and Plus plans in every AWS Region where Cognito is available.<\/p>\n<p>The identity problem at the next service<\/p>\n<p>AWS illustrates the problem with a restaurant app that books tables and sends email invitations. If its reservation service forwards the app\u2019s access token, the email API cannot distinguish that service from the app. If the reservation service uses only its own credentials, the API sees the service but loses the identity of the user behind the request.<\/p>\n<p>Token exchange replaces that handoff with a request to Cognito for a new access token\u2014a credential presented to the downstream API. The calling service supplies a token representing the user and authenticates itself. For delegation, it also submits an actor token identifying the service that will act for that user.<\/p>\n<p>Two modes, different identity records<\/p>\n<p>In impersonation mode, the token represents the user without an act field; client_id identifies the app client that performed the exchange. In delegation mode, the token keeps the user\u2019s identity in sub and adds the acting service in act, allowing downstream authorization and logging to consider both.<\/p>\n<p>Permissions can shrink, not grow<\/p>\n<p>Cognito limits the exchanged token to permissions allowed by both the user\u2019s token and the calling app client. When an audience is requested, the token is bound to that destination API, and every requested permission must belong to it. The token cannot outlive the user token and comes without a refresh token.<\/p>\n<p>The invitation example makes that restriction concrete. A Model Context Protocol, or MCP, server\u2014a service exposing tools to an agent\u2014receives a user token allowing contact reading and message sending. It requests only message-sending permission for the email API, because sending invitations does not require reading contacts.<\/p>\n<p>Checks remain on both sidesBefore issuing a token, Cognito checks the user token\u2019s signature and expiry, rejects revoked tokens, and refuses tokens belonging to disabled users.The destination API must still verify the issued token\u2019s signature, issuer, expiry, audience and permissions. For delegation, AWS says it should check that the named actor is trusted and that act.client_id matches client_id.<br \/>\nThe recorded actor depends on the architecture<\/p>\n<p>Delegation does not automatically identify each individual agent. When a shared MCP server or AI gateway exchanges tokens for several agents using its own actor token, the recorded actor is that intermediary. When an agent performs the exchange using its own actor token, the recorded actor is the agent. That determines which component the downstream API can identify.<\/p>\n<p>Developers enable delegation or impersonation for each Cognito app client. Exchanges can then run through the user pool\u2019s OAuth token endpoint or the GetDerivedToken API through an AWS software development kit. The latter does not require a user-pool domain; both routes return tokens with the same claims.<\/p>\n","protected":false},"excerpt":{"rendered":"An API receiving an AI agent\u2019s request can see both the user being represented and the service acting&hellip;\n","protected":false},"author":2,"featured_media":253519,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[405,13026,1276,2273,91690,306,1998,7537,2614,13250,109472],"class_list":["post-253518","post","type-post","status-publish","format-standard","has-post-thumbnail","category-agentic-ai","tag-ai-agents","tag-ai-market","tag-ai-models","tag-ai-news","tag-ai-newsletter","tag-ai-startups","tag-ai-tools","tag-artificial-intelligence-agents","tag-artificial-intelligence-newsletter","tag-products","tag-superpower-daily"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/253518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=253518"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/253518\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/253519"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=253518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=253518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=253518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}