Authenticate with Private Key JWT using Amazon Bedrock AgentCore Identity
AWS•How-to••by Swara Gandhi and Satveer Khurpa•AWS Artificial Intelligence Blog
This post explains how Private Key JWT client authentication works in AgentCore Identity and reviews the supported grant flows. We then walk through creating an AWS KMS signing key, registering its public key with your identity provider, configuring a credential provider on the AWS Management Console, and reviewing example AWS CloudTrail events that record your agent’s access.
AgentCore Identity now authenticates agents with a signed JWT client assertion, with the private key kept in AWS KMS instead of a shared OAuth client secret.
Who it is for
Teams running agents on AgentCore that need to call OAuth-protected APIs without storing client secrets.
Key points
Supported grant flows are machine-to-machine, on-behalf-of, and user-delegated access.
Signing algorithms are RS256, PS256 or ES256, and the KMS key must match the algorithm's key spec.
Each signing operation is recorded in AWS CloudTrail as a kms:Sign event.
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:AtScale provides a governed dimensional semantic layer on Amazon Redshift that a Strands agent on Bedrock AgentCore queries through the AtScale MCP server, with RBAC and row security enforced before queries reach the warehouse.
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.