TL;DR
Integrating Okta with Amazon Bedrock AgentCore helps you implement an end-to-end Zero Trust security model for autonomous AI agents. Okta serves as the central identity registry and authentication authority, while Bedrock AgentCore enforces runtime workload isolation, on-behalf-of token exchange, and fine-grained Cedar tool-call authorization.
Why identity is essential for securing autonomous AI
As enterprises rapidly deploy autonomous AI agents to automate complex workflows, security and compliance teams face a new challenge: managing non-human identities at scale. Without centralized governance, digital workers can interact with SaaS applications, execute sensitive tool calls, and access corporate resources without human oversight.
Securing these agentic workflows requires extending Zero Trust principles from human users to AI agents. Okta for AI Agents is the control plane for your enterprise AI agents. It gives security, IT, and AI teams a centralized control plane to discover, onboard, protect, and govern every agent—regardless of where the agent was built, which platform it runs on, or which identity provider you use for your people.
The five patterns outlined below are designed for organizations using Okta as their enterprise identity provider and Amazon Bedrock AgentCore (AgentCore) as their agent platform. By integrating Okta for AI Agents with Amazon Bedrock AgentCore, organizations connect corporate identity governance with secure runtime execution. Okta serves as the central identity registry and policy authority, while AgentCore enforces workload isolation, token exchange, and tool-level authorization.
Enterprise integration patterns: Okta for AI Agents and Amazon Bedrock AgentCore
The table below shows five ways Okta and Amazon Web Services (AWS) Bedrock AgentCore work together to secure AI agents.
| Use case | Okta for AI Agents control plane (Enterprise identity) | AgentCore execution plane (Runtime engine) | Key security mechanism |
|---|---|---|---|
| Pattern 1: Agent registration | Central identity catalog, human owner tracking, and deprovisioning | Workload identity generation, secretless outbound credentials | Dual-registry synchronization |
| Pattern 2: Inbound Zero Trust | MFA enforcement, device health checks, and JWT issuance | Boundary JWT validation using OIDC discovery URL | Claims verification (aud, client_id, scope, custom claims) |
| Pattern 3: Cross App Access | Issues delegation token binding user and agent identities | Lambda interceptor exchanges token at SaaS auth server | On-behalf-of a user flow |
| Pattern 4: Layered policy | Evaluates identity context and stamps user claims into JWT | Evaluates Cedar policies against MCP tool parameters | Default-deny execution and CloudWatch audit |
| Pattern 5: Human-in-the-loop | Step-up MFA challenge (Okta Verify push), stamps amr | Returns an authorization URL; agent waits for step-up | 10-minute authorization expiration |
Pattern 1: How to register and govern AI agents to prevent shadow AI
Use case: As a governance lead, I want to register and catalog every AI agent as a governed entity, so that I can prevent shadow AI and maintain full corporate accountability and compliance oversight for every digital worker.
Architecture flow: Dual registry, identity, and runtime governance
Okta for AI Agents’ role: Enterprise identity registry
Okta for AI Agents registers the agent as a governed enterprise identity with named human owners, a certification schedule, and a deactivation path. When a sync detects an agent has been deprovisioned, Okta blocks it from requesting OAuth tokens and deletes the agent runtime to fully remove identity and access management (IAM) roles and credentials. Agents that fail to provision are placed in a suspended state and cannot obtain authorization grants until the issue is resolved; Okta answers who is accountable for this agent and regulates access.
AgentCore’s role: Runtime identity registry
AgentCore Identity gives the same agent a workload identity in AWS, which it uses to obtain scoped OAuth tokens and API keys for external services without embedded secrets. The agent's access to AWS resources comes from the runtime's IAM execution role.
How Okta for AI Agents and AgentCore work together: Dual-plane governance
Okta for AI Agents adds human ownership, certification, and lifecycle context to the agent identity. Amazon Bedrock AgentCore Identity provides the agent's runtime workload identity and scoped access to AWS resources without embedded credentials. Customers using both can connect corporate accountability with secure runtime authentication and credential access.
Pattern 2: How to enforce Zero Trust inbound access to AgentCore runtimes
Use case: As a system administrator, I want to restrict access to my AI agent to risk-verified, authenticated employees, ensuring the AgentCore runtime is accessed only by verified, authorized identities.
Architecture flow: Token validation at the runtime boundary
Okta for AI Agents’ role: Identity and posture check
Okta for AI Agents evaluates corporate credentials, network egress flags, and real-time device health before issuing an access token to the user for calling the agent. The policy outcome, including multi-factor authentication (MFA), risk level, and device state, is stamped into the token as claims, carrying the enforcement decision forward. In this pattern, Okta authenticates the employee directly and provides corporate identity, MFA, device, and risk context into the issued token.
AgentCore’s role: Boundary validation and decoupled verification
When the runtime is configured with an inbound JSON Web Token (JWT) authorizer, Amazon Bedrock AgentCore intercepts each request at the runtime boundary and independently enforces those configured authorization requirements by validating the Okta-issued JWT before starting a session.
AgentCore can be configured to validate attributes such as the token's audience, client, scope, expiration, and configured claims. It obtains Okta's public signing keys from the configured OpenID Connect (OIDC) discovery URL, allowing the two systems to remain decoupled while coordinating identity and runtime enforcement.
How Okta for AI Agents and AgentCore work together: Execution decisions
Okta for AI Agents evaluates identity, MFA, and device health before issuing a token, verifying only the right people can use the agent. AgentCore uses that token as the condition for spinning up the runtime session, tying every compute resource to a verified identity. Okta evaluates policy at authentication, and AgentCore validates the resulting token at the execution boundary. Together they help ensure every agent session starts from a known, trusted state.
Pattern 3: How to execute delegated Cross App Access (On-behalf-of-user flows)
Use case: As an agent developer, I want my AI agents to fetch data from external SaaS applications (such as Salesforce or Slack) using the authority of a human user, so that the agent operates within the user’s allowed permissions.
Cross App Access flow
For Cross App Access (XAA) involving Okta and a resource application's authorization server, customers can configure an AWS Lambda interceptor on AgentCore Gateway to coordinate the two token exchanges and attach a scoped access token to the outbound tool call. This pattern combines Okta's delegated identity context with AgentCore Gateway's request interception and routing capabilities without storing primary user credentials.
Okta for AI Agents’ role: Delegation minting
Okta for AI Agents acts as the authorization server for the first leg of the XAA flow, issuing a short-lived delegation credential that asserts the agent is authorized to act on the user's behalf. This credential cryptographically binds the two identities together, allowing the agent to cross application boundaries without exposing primary user tokens. Because admins configure the cross-app access (XAA) grant centrally at the org level, users are never prompted for consent, and all agent actions remain fully auditable.
AgentCore’s role: Gateway interception
AgentCore routes the request to the AWS Lambda interceptor, which runs both legs of the XAA flow: redeeming Okta's delegation credential at the resource app's own authorization server to obtain a scoped access token, then injecting it directly into outbound headers.
Configuration notes:
- Set passRequestHeaders to true to allow the interceptor to read the user's token. To protect sensitive credentials, ensure your interceptor logic doesn’t log incoming request headers.
- Design the interceptor to keep the token in Lambda handler scope so it doesn't persist across invocations.
How Okta for AI Agents and AgentCore work together: Downstream token exchange and memory-only injection
Okta for AI Agents mints a token that links the user and the agent. AgentCore uses this token to execute a two-step exchange without requiring additional sign-in prompts. In the first leg, Okta issues a delegation token; the AgentCore Lambda interceptor then redeems it at the resource app's authorization server to obtain the final access token. Together, they enforce scoped, user-bound access across application boundaries without stored credentials.
Pattern 4: How to configure layered authorization from identity claims to tool execution
Use case: As a compliance manager, I want Okta to evaluate identity context and emit it as claims in a token. I also need the Amazon Bedrock AgentCore Policy engine to evaluate those claims alongside tool parameters, ensuring each check is audited and access is enforced end-to-end.
Architecture flow: Okta identity context evaluated by AgentCore Policy at AgentCore Gateway
Okta for AI Agents’ role: Control point
Okta for AI Agents’ fine-grained permissions evaluate the user's identity relationship and security policies, then assert the outcome as claims in the access token. These claims, including identity context, MFA, and risk signals, are the inputs AgentCore Policy evaluates downstream. Okta writes its own permit-or-deny decision to its audit log.
AgentCore’s role: Gateway policy engine
When a policy engine is associated with the gateway, Amazon Bedrock AgentCore Gateway receives each Model Context Protocol (MCP) tool call, and the associated AgentCore Policy engine evaluates it before the target is invoked. Configured this way, AgentCore Policy uses Cedar policies to evaluate both tool-call parameters and the claims Okta emitted, so identity context flows directly into the execution decision. AgentCore Policy uses default-deny semantics, so a call that does not satisfy a policy is blocked before reaching the target.
AWS Identity and Access Management (IAM) and AgentCore Policy remain distinct control layers operating on different principals: IAM authorizes the AWS API call that delivers the tool call, while AgentCore Policy authorizes the tool call itself, down to individual input parameters. Each layer evaluates independently. When traces are enabled on the gateway, Amazon CloudWatch logs the permit-or-deny decision, authorization reason, and determining policies for each tool call.
How Okta for AI Agents and AgentCore work together: Auditability
Okta determines what identity context is expressible; AgentCore Policy determines what tool calls that context permits. Each layer writes to its own audit log, but the decision is sequential: Okta's claims are an input to AgentCore Policy evaluation. Each control evaluates its configured policy before the action proceeds. Together, they coordinate corporate identity context with tool-level execution controls and provide an audit record at each layer.
Pattern 5: How to implement human-in-the-loop step-up verification for high-risk actions
Use case: As a security administrator, I want to help ensure that high-stakes operations, such as large financial transfers or critical database changes, are paused until an explicit human approval is provided, so that no sensitive action completes without verified intent.
Architecture flow: Pause, verify, resume
Okta for AI Agents’ role: Step-up challenge and claim stamping
Okta for AI Agents re-challenges the designated approver with MFA (for example, an Okta Verify push) before the agent takes any action, ensuring a human, not the agent, makes the final call on sensitive requests.
Okta stamps the step-up outcome into the token as an amr claim (Okta-specific values: okta_verify, swk for Verify push), giving AgentCore verifiable proof of the authentication method, not just that a token was issued.
AgentCore’s role: Interception and verification; session resume or timeout
Configured for this pattern, Amazon Bedrock AgentCore serves as the runtime interception point. Before executing a sensitive operation, the agent requests step-up authentication for a specified user identity. AgentCore Identity returns an authorization URL, and the agent waits for the approver to complete the Okta challenge.
After the approver completes the challenge, the agent verifies the amr claim before proceeding with the operation. If the approver doesn’t complete the challenge within 10 minutes, the authorization request expires, and the agent must initiate a new step-up request.
How Okta for AI Agents and AgentCore work together: Verified human approval
Configured for this pattern, AgentCore provides the runtime interception point and AgentCore Identity returns an authorization URL for the approver, and the agent waits before any tool runs. Okta re-challenges the human with MFA and stamps the step-up level as an amr claim in the token. Together, they help ensure no high-stakes action is completed without verified, acr-backed human confirmation.
Build a secure foundation for agents
Deploying autonomous digital workers doesn’t mean compromising corporate security or compliance. Combining Okta for AI Agents enterprise identity governance with Amazon Bedrock AgentCore's runtime execution controls establishes end-to-end visibility, verifiable human intent, and least-privilege enforcement across every agent interaction.
To prevent fragmented logs across two sources, all events from Okta and Amazon Bedrock AgentCore should be ingested into the AWS Security Lake. Correlating Okta's identity claims with AgentCore’s runtime execution enables security analysts to monitor, alert on, and audit all agent transactions from a unified pane of glass.
To explore these integration patterns and see how they work in your environment, check out the Okta inbound authentication sample and XAA delegation chain sample on GitHub.
Ready to secure your agentic workflows? Download the Okta for AI Agents + Amazon Bedrock for Identity Security and Governance solution brief to discover how the AgentCore integration helps protect non-human identities, eliminate agent sprawl, and enforce lifecycle governance at scale.
These materials are for general informational purposes only and do not constitute legal, privacy, security, compliance, or business advice. The content may not reflect the most current security, legal and/or privacy developments. You are solely responsible for obtaining advice from your own legal and/or professional advisor and should not rely on these materials for compliance, implementation, or purchasing decisions. Okta makes no representations or warranties regarding this content and is not liable for any loss or damages resulting from your implementation of these recommendations. Information on Okta’s contractual assurances to its customers may be found at okta.com/agreements.