Manage end-user OAuth consent for AI agents with Amazon Bedrock AgentCore
AWS•How-to••by Swara Gandhi, Eashan Kaushik and Satveer Khurpa•AWS Artificial Intelligence Blog
Amazon Bedrock AgentCore Identity now offers a Consent portal, a managed web experience and session binding endpoint for AgentCore Gateway. This post walks through provisioning a portal, configuring GitHub and Slack authorization code grant targets, and the end-user consent flow, and shows how to review activity in AWS CloudTrail.
AgentCore Identity adds a managed Consent portal that lets end users sign in via the corporate IdP and grant separate OAuth consent for GitHub and Slack tools on an AgentCore Gateway.
Who it is for
Teams running AI agents on AgentCore Gateway that need users to authorize GitHub or Slack access without building their own session binding.
Key points
One Consent portal is allowed per gateway, and the gateway cannot be changed after creation.
Portal URL pattern is https://<gateway-name>.consent-portal.bedrock-agentcore.<region>.amazonaws.com.
Portal consent is per provider; a user can connect GitHub while Slack stays unconnected.
Without a refresh token, users must reauthorize in the portal once the access token expires.
AI:Gateway tool calls can reach private ALBs and private API Gateway endpoints through a VPC Lattice resource gateway placed in the network account, so traffic crosses the central firewall in both directions.
AI:Compares three OAuth setups for AgentCore Gateway to reach the Snowflake-managed MCP server: Snowflake OAuth per-user, three-legged with corporate IdP, and two-legged with a shared service user.
AI:AgentCore Gateway now performs on-behalf-of token exchange with Microsoft Entra ID natively, so an agent's calls to the ServiceNow REST API carry the calling user's identity without a Lambda interceptor.