Bring your own identity provider: Securing AI agents with Okta and Cross App Access

About the Author

04 December 2026 Time to read: ~

TL;DR

  • What’s new: Okta now accepts agent identity assertions (ID-JAGs) from third-party IdPs—including Ping, Descope, Oracle, other Okta orgs, and any OIDC provider supporting Cross App Access. 
  • Why it matters: Teams can connect external AI agents to Okta-protected resources in days—without migrating users, issuing static credentials, or triggering per-agent consent prompts. 
  • Centralized control: Okta retains centralized policy enforcement, a unified audit trail, and a kill switch. 
  • Availability: The feature is Generally Available today for Okta for AI Agents and Agent SSO customers.

Agentic AI is redefining the "user session." An agent often acts for an employee across applications belonging to different teams and sometimes across different companies' identity systems. Cross App Access (XAA) is the open standard for this. The identity provider (IdP) vouches for who the employee is and which agent is acting on their behalf. The resource's authorization server decides whether to grant access.

Until now, Okta acted as the assertion issuer in that exchange. Most enterprises run multiple IdPs, which is why Okta now works with third-party identity providers. This post covers what changed, how it works, and the engineering decisions behind it.

The customer problem: Why securing AI agents across multiple identity providers is difficult

Real enterprise identity environments are messy. Teams face four recurring challenges when deploying AI agents across mixed stacks:

  • Acquisitions and partnerships: A newly acquired company has their own IdP, their own users, and their own agents. A full identity merge takes years, but the business wants those agents working with your applications this quarter.
  • Multiple identity stacks: Different business units standardized on different providers, each with a legitimate reason.
  • Agents are multiplying: Every team is building them, and each one needs to reach protected resources. Static API keys and per-agent service accounts don't scale and are hard to revoke.
  • Consent fatigue: If every agent-to-app connection triggers an approval prompt for the employee, people click through, and the consent stops meaning anything.

The trade-off was awkward: either consolidate on one IdP first, which is slow and often politically impossible, or build custom bridges and accept fragmented visibility. Security teams ended up with agents in several directories, several audit trails, and no single place to cut off access.

 Consolidate firstCustom connectorsFederated with XAA
Time to valueMonths to yearsWeeks per integrationDays
Source IdPReplacedKeptKept
Agent credentialsRe-issuedOften staticShort-lived, per request
Visibility and controlOne system (after migration)FragmentedCentralized in one place

Example scenario 

Task Vantage acquires Streamward. Streamward's employees sign in through an external IdP, and their teams have already built agents there. Task Vantage runs their applications and access policy in Okta. Merging the two identity systems will take years, but the business wants Streamward's agents working with Task Vantage's applications this quarter. The Task Vantage admin marks Streamward's IdP as trusted for agents, links the people who need access, and writes a policy that gives specific agents specific scopes. Streamward's agents get short-lived, scoped access, while Task Vantage security sees every request in a single audit trail.

How Okta works with third-party identity providers

Okta can now trust an ID-JAG (a short-lived identity assertion) issued by an external IdP, including generic OpenID Connect (OIDC) providers (such as Ping, Descope, and Oracle), other Okta orgs, and Okta Integration IdPs.

How the authentication flow works for an AI agent

  1. Employee sign-in: The employee signs in once with their existing third-party IdP.
  2. Token exchange: The agent exchanges the employee's token at that IdP for an ID-JAG, a short-lived assertion naming the employee, the agent, and the target authorization server.
  3. Assertion presentation: The agent presents the assertion to the Okta authorization server protecting the target resource.
  4. Verification and access: Okta verifies the assertion against the external IdP's published keys, matches the employee's Okta account, evaluates policy, and issues a scoped, short-lived access token for that specific resource.

The employee sees no per-agent consent prompt, and Okta logs both the employee and the acting agent.

How admins manage external IdPs in Okta

  • Define IdP scope: Mark an IdP as Cross App Access only (it issues agent assertions but never signs anyone in) or SSO and Cross App Access.

Configuration screen for setting up an OpenID Connect identity provider to support cross-app access and AI agent authentication
  • Link users once: Link employees to their IdP identity, so Okta knows which user an assertion refers to.
  • Enforce granular policy: Authorization server rules decide which agents get which scopes, and can also restrict a rule to specific IdPs; for example, "only assertions from the acquired company's IdP."
  • Centralize visibility and revocation: Agents from all connected IdPs appear in a single directory with a shared audit trail, plus a kill switch that blocks new access to Okta-protected resources.

Architecture and boundaries: How Okta secures external AI agent assertions

Accepting identity assertions from an external IdP is a trust decision, so we focused our design on setting clear boundaries. We built this capacity around the following security principles:

  • Trust is opt-in, never implicit: An IdP being configured in an org doesn't make Okta trust its assertions. An admin must explicitly enable it for Cross App Access. If the issuer is unknown, or matches more than one configured IdP, the request is rejected. Ambiguity fails closed.
  • An agent-only IdP can't become a login path: An IdP enabled only for Cross App Access is deliberately incapable of interactive sign-in, Just-In-Time (JIT) provisioning, account linking, or step-up. The configuration separation is enforced when the IdP is set up, not just in the Okta Admin Console, so a provider trusted to vouch for agents can't later be pointed at your workforce sign-in.
  • Verification stays the same; only the source of keys changes: Okta verifies the assertion’s signature the same way whether Okta or an external IdP issued it. The only difference is where Okta retrieves the public key: from the external IdP's published key set. If Okta can’t find a valid key, it rejects the request.
  • Identity is resolved, never created: Okta doesn't turn an incoming assertion into a new user. The employee identified by the assertion must already exist in Okta and be linked to that IdP. An unlinked or ambiguous subject is rejected. Provisioning stays under your control.
  • Assertions are narrow by construction: They are short-lived (five minutes at most), single-use, and bound to a specific agent and a specific authorization server. The agent must be a registered client in Okta, and the client named in the assertion must match the client making the request. Okta then issues its own scoped token, so the external IdP doesn’t decide what the agent can access. Okta policy does.
  • Policy evaluates the verified issuer: The IdP restriction in the access policy rules checks the issuer Okta cryptographically verified for this request. It does not look at the user's sign-in session, and it never takes client-supplied claims on trust. It applies only to the rules for this grant type, so it can't be used to broaden trust elsewhere.

How to set up Cross App Access with an external IdP

Connect your existing IdPs to Okta without migrating users, managing second credentials, or sacrificing central visibility. This capability is Generally Available for Okta for AI Agents and Agent SSO customers (federating with another Okta org requires only the SSO feature). 

Prerequisites and current limitations

Before you start, make sure your environment meets these requirements:

  • Supported IdPs: An OIDC-based IdP (or another Okta org) that supports Cross App Access and issues ID-JAGs. Non-OIDC IdPs aren’t currently supported.
  • Authorization server: A custom authorization server configured with the scopes the agent will request (the org authorization server isn’t supported).
  • Agent registration: The agent registered as an app in your Okta org with the JSON Web Token Bearer grant type enabled
  • User accounts: Pre-existing employees in your Okta org who are already linked to the external IdP (auto-provisioning isn’t supported).
  • Licensing: An active Okta for AI Agents subscription (for third-party OIDC providers) or the SSO feature (for another Okta org).

Next steps

Ready to federate your existing IdP? Follow our step-by-step developer guide to configure Cross App Access with an external IdP. 

Want to see how Okta for AI Agents brings all your agents into a single control plane with complete audit trails and a rapid kill switch? Download the datasheet: Okta for AI Agents: Securely manage your AI agents from a single control plane.

About the Author

Continue your Identity journey