Skip to content
IAM Insights

Briefing · Article · source · updated · Boston Identity

Auth0's AgentCore guide says prompts alone are not enough, then lets the prompt decide when to ask a person

Kapil Patil's walkthrough on the Auth0 blog builds an agent on Amazon Bedrock AgentCore with Auth0 for AI Agents around it: Auth0 login checked before the agent runs, user tokens fetched from Token Vault and kept away from the model, Auth0 FGA for per-user tool rights, and a CIBA push to a phone for sensitive requests. Whether a request goes to that push at all is a rule in the agent's system prompt. The setup also switches MFA off.

Auth0 Blog · Kapil Patil · February 10, 2026 · read

share
3 findings5 sectionsAgentic identityAI trustNon-human identity
4,241 words. With Kapil Patil, author, Auth0 (Okta).
01

What's happening

Finding3
BI-FIND-2026-1261Lead finding

In Patil's build a system prompt tells the model when to ask a person for approval, and the agent code has no reset tool behind that approval.

Patil warns that "Relying solely on prompt engineering is insufficient for ensuring LLM safety", yet in his build a prompt decides when a person is asked. The agent's system prompt tells the model that for an elevated operation such as a password reset "you MUST call the `invokeCiba` tool", which sends an approval request to the user's Guardian app. The agent code in the post has no reset tool behind the approval (the flow "does not actually reset your password"), so the walkthrough shows an approval arriving on a phone, not an action that waits for one. In the test screenshot the agent still tells the user the new password has been set.

high confidencebest source: vendor, technicalobserved Feb 2026EvidenceAgent build, JWT authorizer and FGA modelSection 1Test plan and conclusion
flag a problem with BI-FIND-2026-1261
BI-FIND-2026-1263

Patil's design is meant to keep credentials away from the model by parking users' tokens in a DynamoDB session table the agent reads at run time.

The design is meant to keep credentials away from the model. AgentCore Identity checks the user's Auth0 access token before the agent runs. The user's tokens for outside services come from Auth0 Token Vault through a token exchange and are parked in a DynamoDB session table the agent reads at run time, because, Patil writes, "passing access tokens to these models is inherently insecure." Auth0 FGA then decides from a per-user tuple whether the agent may read that user's Okta groups. The DynamoDB table is a second copy of the vault's tokens, and the post does not say how it is protected or when entries expire.

high confidencebest source: vendor, technicalobserved Feb 2026EvidenceReference architectureSection 3
flag a problem with BI-FIND-2026-1263
BI-FIND-2026-1262

Patil's setup leaves the AgentCore Gateway's allowed audiences, clients and scopes unticked and has the reader set the tenant's MFA policy to None.

Two setup steps loosen checks we would expect a production build to keep. Patil explains that the agent runtime's audience check stops "a token from another app from being reused here (a common security vulnerability)", but his screenshot of the AgentCore Gateway, which fronts the MCP servers and APIs, leaves allowed audiences, clients and scopes unticked and matches only the token's azp claim to the app's client ID. And the test plan tells the reader to set the tenant's MFA policy to "None" so that Token Vault works. A team that follows the steps as written ends up with both settings.

medium confidencebest source: vendor, technicalobserved Feb 2026EvidenceSection 3Test plan and conclusion
flag a problem with BI-FIND-2026-1262
02

Section by section

5

showing 5 of 5

[1]

The premise: no blueprint, six misunderstandings

Kapil Patil, Auth0 (Okta)

Agentic identityAI trust

Patil opens by saying agent security has no settled blueprint, and asks for least privilege, credentials issued per user instead of one shared secret, fine-grained access control and a human in the loop. Under the heading of common misunderstandings he adds that plain API keys lack per-user context, that prompt engineering alone is not enough, that a bare "Yes" is not adequate consent for sensitive actions, and that a model must never handle credentials. None of it is backed by data.

positioning shiftfrom published text

[2]

Reference architecture: Auth0 around AgentCore

Kapil Patil, Auth0 (Okta)

Agentic identity

A user signs in through the Auth0 widget and a Strands agent runs inside AgentCore Runtime, where AgentCore Identity checks the Auth0 access token before the agent acts. The agent then calls Auth0 FGA, a CIBA approval for sensitive requests and Token Vault, and reaches MCP servers and APIs through AgentCore Gateway. The post's architecture diagram [figure 1] matches the prose.

ecosystem movefrom published text + figures

[3]

Setup: Auth0 application, Token Vault, AWS infrastructure and Gateway inbound auth

Kapil Patil, Auth0 (Okta)

Agentic identityNon-human identity

Most of the setup is console clicks: an Auth0 web app with the Token Vault and CIBA grant types, an Okta OIDC connection, the My Account API for connected accounts, an AWS user given Admin rights for the demo, a DynamoDB table that holds the user's federated tokens so the model never sees them, Secrets Manager, and a Gateway whose inbound check, in the screenshot [figure 22], matches only the azp claim.

technical artifactfrom published text + figures

[4]

Agent build, JWT authorizer and FGA model

Kapil Patil, Auth0 (Okta)

Agentic identityAI trust

The agent's tools read the user's Okta groups, start a CIBA approval or reach the remote MCP tools. Its system prompt tells the model it must call the CIBA tool for a password reset. Deployment sets a JWT authorizer with allowed clients and audience. The FGA model lets a user, or a member of a group, read Okta groups, and one tuple grants the author that right.

technical artifactfrom published text + figures

[5]

Test plan and conclusion

Kapil Patil, Auth0 (Okta)

Agentic identity

The test plan is manual: log in with MFA, then switch the tenant's MFA policy to "None", list Okta groups through Token Vault, approve a CIBA push for a password reset that the post says is not a real reset, list tasks over MCP, and revoke the FGA tuple to get a refusal. Screenshots cover the successful paths only; the refusal is an expected result with no screenshot.

technical artifactfrom published text + figures

Terms used

Amazon Bedrock AgentCore
AWS managed platform for deploying and operating AI agents (runtime, memory, identity, gateway).
AI agent
Software that uses an AI model to decide its own next steps and then acts through tools and APIs, rather than answering a single prompt. Because it acts, it needs an identity of its own.
OpenFGA
An open-source fine-grained authorization (FGA) engine, modelled on Google's Zanzibar, that stores relationship tuples and answers yes/no access checks.
CIBA
Client-Initiated Backchannel Authentication — an OpenID flow where sign-in is approved out-of-band on another device (say, a push to your phone) rather than in the requesting browser.
MFA
Proving who you are with more than a password, such as a one-time code, a hardware key, or a fingerprint.
LLM
The text-predicting AI model behind chatbots and agents. It follows instructions statistically, which is why an instruction hidden in its input can redirect it.
Agent runtime
The environment where an AI agent actually executes, such as a container, Kubernetes pod or managed platform, which an organization can standardize for ingress, egress and telemetry.
MCP server
The tool-providing side of the Model Context Protocol (MCP): exposes tools, resources and prompts to an MCP client, often running locally with the user's privileges.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity