AI Cloud Architect

Authenticate with Private Key JWT using Amazon Bedrock AgentCore Identity

AWSHow-to by Swara Gandhi and Satveer KhurpaAWS 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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

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.

Timeline

Posts about Amazon Bedrock AgentCore Identity, oldest first.

  1. Generally availableAmazon Bedrock AgentCore Identity now supports On-Behalf-Of (OBO) token exchange · AWS · Announcement
  2. How-toSecure AI agents with Amazon Bedrock AgentCore Identity on Amazon ECS · AWS · How-to
  3. New featureAmazon Bedrock AgentCore Identity now allows you to bring your own secrets with AWS Secrets Manager · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  4. This postAuthenticate with Private Key JWT using Amazon Bedrock AgentCore Identity
  5. New featureAmazon Bedrock AgentCore Identity now offers a managed consent portal · AWS · Announcement
  6. How-toManage end-user OAuth consent for AI agents with Amazon Bedrock AgentCore · AWS · How-to
  7. How-toGovern AI agent access with Okta Cross App Access and Amazon Bedrock AgentCore – Part 1 · AWS · How-to
  8. Update to an existing featureAmazon Bedrock AgentCore Identity now supports OAuth 2.0 discovery URLs · AWS · Announcement
  9. How-toPrivate certificate authority support in Amazon Bedrock AgentCore Identity · AWS · How-to
Show all 10 posts
  1. Generally availableAmazon Bedrock AgentCore Identity now supports On-Behalf-Of (OBO) token exchange · AWS · Announcement
  2. How-toSecure AI agents with Amazon Bedrock AgentCore Identity on Amazon ECS · AWS · How-to
  3. New featureAmazon Bedrock AgentCore Identity now allows you to bring your own secrets with AWS Secrets Manager · AWS · AnnouncementAlso published by AWS Artificial Intelligence Blog
  4. This postAuthenticate with Private Key JWT using Amazon Bedrock AgentCore Identity
  5. New featureAmazon Bedrock AgentCore Identity now offers a managed consent portal · AWS · Announcement
  6. How-toManage end-user OAuth consent for AI agents with Amazon Bedrock AgentCore · AWS · How-to
  7. How-toGovern AI agent access with Okta Cross App Access and Amazon Bedrock AgentCore – Part 1 · AWS · How-to
  8. Update to an existing featureAmazon Bedrock AgentCore Identity now supports OAuth 2.0 discovery URLs · AWS · Announcement
  9. How-toPrivate certificate authority support in Amazon Bedrock AgentCore Identity · AWS · How-to
  10. New featureAmazon Bedrock AgentCore Identity adds private certificate authority support · AWS · Announcement