Skip to content
AWS Security· Edward Sun·Indexed by this site · Originally published· Tools →· Its place in the scan record →SelectedAttention33

Using Amazon Cognito token exchange to delegate user access to AI agents

Delegate user access to AI agents with Amazon Cognito token exchange

AI summary

AWS launched an OAuth 2.0 token exchange feature in Amazon Cognito, for services and AI agents to call downstream APIs on behalf of users. The feature distinguishes two modes, impersonation and delegation; delegation writes the identity of the acting service into the token's act claim, so downstream APIs can use it to authorize and audit who acted for which user. Exchanged tokens can only narrow permissions, not add scopes, have a validity no longer than the user's original token, and do not return a refresh token. The article gives three configuration examples: a self-built MCP server, Amazon Bedrock AgentCore Gateway, and AgentCore Runtime; the feature can be enabled in user pools on the Essentials or Plus plans.

Why it was selected

AWS officially explains how to use Cognito token exchange to let agents call APIs on behalf of users, so downstream services can identify both the user and the acting party, facilitating authorization and auditing.

Read originalaws.amazon.com