{"resourceId":"amazon-cognito-token-exchange-delegation-ai-agents-agentcore-identity-20261124","versions":[{"version":"external-bdf2ae68d217881900580352a42e4f0ba6cd745fd6d430ead40745e6a95432fb","resource":{"id":"amazon-cognito-token-exchange-delegation-ai-agents-agentcore-identity-20261124","title":"AWS shows how Amazon Cognito token exchange lets AI agents and MCP servers act for a user with scoped, audience-bound tokens that name the agent, including with AgentCore Identity","organization":"Amazon Web Services","sector":"Identity and access management for AI agents","geography":"Global (all Regions where Amazon Cognito is available, per AWS)","publishedAt":"2026-11-24","publicationDate":"2026-11-24","eventDate":"2026-11-12","sourceName":"AWS Security Blog","sourceLabel":"Delegate user access to AI agents with Amazon Cognito token exchange","sourceUrl":"https://aws.amazon.com/blogs/security/delegate-user-access-to-ai-agents-with-amazon-cognito-token-exchange/","evidenceClass":"vendor-claim","outcomeClass":"emerging","topics":["developers-agents","data-security","governance-procurement"],"finding":"An AWS Security Blog post of November 24, 2026 explains OAuth 2.0 token exchange (RFC 8693) in Amazon Cognito, launched November 12, for services and AI agents that call APIs on a user's behalf. It distinguishes impersonation (the issued token represents only the user) from delegation, where the calling agent sends its own actor token and Cognito adds an act claim naming it, so the downstream API and its logs can see both the user and the agent. Issued tokens are bound to one audience, can carry narrower scopes, expire no later than the user's token and come without a refresh token. The post walks through an MCP server example and an AgentCore Identity and Runtime configuration, and tells resource servers to accept delegated tokens only when act.client_id is a trusted service. The launch notice says the feature is on the Essentials and Plus plans in all Regions where Cognito is available. The same day's AWS weekly roundup lists Cognito dynamic client registration (RFC 7591) for MCP clients and agents, alongside STS scoped credentials and CloudFront network calls, as identity features for agents. Independent context: CSO Online (Oct 8) reported researchers' findings that AgentCore default configurations let prompt injection reach plaintext credentials and broad permissions; AWS disputed that these were vulnerabilities.","sledRelevance":"Relevant to state and local IT, universities and K-12 districts that use Cognito for resident, student or staff sign-in and are adding AI agents or MCP servers: delegation gives an audit record showing which agent acted for which person, which public-records, FERPA and benefits-case audit trails need. No SLED deployment is cited.","evidence":"AWS-authored how-to and launch notice; no customer, performance or security test results. CSO Online is independent reporting on related AgentCore risks, used as context; it does not evaluate token exchange.","architectureImplications":"Agents stop forwarding user access tokens; each hop requests an audience-bound token. Resource servers must validate aud and act claims and maintain an allow-list of trusted agent clients. Works through the token endpoint or GetDerivedToken API; requires Essentials or Plus plan.","governanceImplications":"Audit logs can show both the authorizing person and the acting agent, supporting accountability rules in state AI policies (interpretation). Agencies must decide which agents are trusted per API.","securityPrivacyImplications":"Narrower, short-lived tokens reduce the blast radius of a compromised agent compared with forwarded tokens; they do not prevent prompt injection from misusing scopes the agent legitimately holds, as the CSO-reported AgentCore findings illustrate.","caveats":"Vendor guidance only; GovCloud availability not separately confirmed beyond 'all Regions where Cognito is available'; feature launched Nov 12, the Nov 24 post is new guidance; independent reporting concerns AgentCore defaults, not this feature.","streamIds":["aws","state-government","citizen-engagement"],"roles":{"sales":"Open with accountability: when an AI agent changes a resident's case or a student's record, auditors will ask who authorized it and which agent acted. Cognito delegation records both in the token. Target agencies and universities already on Cognito that are piloting agents or MCP servers. Ask how they log agent actions today and whether agents forward user tokens. Offer an identity design review for one agent workflow. Do not claim it stops prompt injection or satisfies any specific audit standard.","engineering":"Fit is strong where Cognito already issues user tokens. Replace token forwarding with exchange: the agent sends the user's token plus its own actor token and receives an audience-bound, narrower token carrying an act claim. Resource servers must check aud, act.client_id and client_id against an allow-list. AgentCore Identity and Runtime can be wired in as the post shows. Confirm plan tier and Region availability, then test that a revoked or untrusted agent is rejected.","delivery":"Delivery means rolling delegation into one agent workflow end to end: enable the app-client setting, register resource servers, update APIs to validate act claims, and change logging to capture user and agent identities. The identity team owns the trusted-agent registry; application owners own claim validation. Proposed acceptance includes zero forwarded user tokens in the pilot and logs showing both identities per call. Risks include partial adoption, misconfigured trust lists and assuming scoped tokens remove prompt-injection risk."},"roleDetails":{"sales":{"customerProblem":"Agencies piloting AI agents cannot show auditors which agent acted on whose behalf when agents forward user tokens.","stakeholders":["Identity and access management lead","Agency CISO","Application owners","Records and audit officers","University IT security"],"discoveryQuestions":["Do your agents forward users' access tokens today?","Which APIs do agents call on users' behalf?","Are your Cognito user pools on Essentials or Plus?","How are agent actions logged now?"],"valueHypothesis":"Delegated tokens could give auditable, least-privilege agent access without custom token minting; no measured benefit is published (interpretation).","potentialEngagement":"An identity design review and pilot of token exchange for one agent or MCP server workflow.","unsupportedClaims":["Prevention of prompt injection","Compliance with a named audit standard","Confirmed GovCloud availability","Any SLED customer results"]},"engineering":{"fit":"Cognito-based applications adding AI agents or MCP servers that call downstream APIs for users.","architectureIntegration":"Token endpoint or GetDerivedToken API; AgentCore Identity credential provider and Runtime JWT authorizer per AWS example.","prerequisites":["Essentials or Plus plan","ALLOW_TOKEN_EXCHANGE_DELEGATION on the app client","Registered resource servers","Claim validation in APIs"],"constraints":["Cognito user pool issuance only","Region availability tied to Cognito","Trusted-agent allow-list must be maintained"],"security":"Audience-bound, scoped, short-lived tokens with no refresh token; agents can still misuse granted scopes if manipulated.","proofOfValue":["Untrusted act.client_id is rejected","Issued token expires no later than user token","Logs show user and agent for each call","Scope reduction verified per hop"]},"delivery":{"work":"Implement delegation for one agent workflow, update API validation and logging, and document the trusted-agent registry.","dependencies":["Cognito plan tier","API owner changes","Logging pipeline updates","Security review"],"ownership":"Identity team owns trust registry; application owners own API claim checks.","skillsAdoption":"Developers learn RFC 8693 exchange and act-claim validation; auditors learn to read dual-identity logs.","governanceCheckpoints":["Impersonation versus delegation decision recorded per API","Trusted-agent list approved","Log retention meets records policy"],"acceptanceCriteria":["Zero forwarded user tokens in pilot traffic (proposed)","100% of agent calls logged with user and agent identity (proposed)","Untrusted agents rejected in tests (proposed)"],"risks":["Stale or overly broad trusted-agent list","APIs that skip act validation","Over-reliance on token scoping against prompt injection"]}},"retrievedAt":"2026-11-25T04:13:51Z","enrichedAt":"2026-11-25T04:20:16Z","enrichmentBasis":"retrieved source","accessibilityWorkforceImplications":"No accessibility content. Developers need OAuth claim-validation skills; identity teams gain a new trust list to maintain.","procurementImplications":"May require upgrading Cognito user pools to the Essentials or Plus plan; pricing implications not stated in the sources (interpretation).","operatingModelImplications":"Identity teams, not app teams alone, should own the registry of trusted agent clients and the policy on impersonation versus delegation.","sourceVerification":{"openedUrl":"https://aws.amazon.com/blogs/security/delegate-user-access-to-ai-agents-with-amazon-cognito-token-exchange/","referenceExcerpt":"For AI agents, delegation adds a second identity to the token.","promptVersion":"sled-research-v4.0","model":null,"basis":"agent-reported inspection"}}}]}