# Decision Points for Embedding AI Agents in Enterprise Systems
# Centralized ID Broker vs Federated Authentication
🎯 The Hook
When your agent needs to access Salesforce, ServiceNow, Workday, Box, and Slack, how do you design the authentication layer? Centralizing everything through Okta versus leveraging each system's existing SSO are fundamentally different approaches — with different security models, operational costs, and failure modes. Most enterprises land on a hybrid: centralized broker for unified authentication, then local scope-down at each SaaS. Understanding why that happens is the starting point for identity design in the age of agents 🔑
📋 Overview
A centralized ID broker consolidates agent authentication and authorization through a single IdP like Okta or Azure AD. Using OAuth 2.0 Token Exchange (RFC 8693), it issues scope-restricted tokens for agents from user tokens, providing unified tracking of "who delegated what to which agent." Federated authentication, in contrast, leverages each SaaS platform's existing SAML/OIDC integrations, preserving each business unit's autonomy and existing investments. The choice comes down to consistency and control versus autonomy and speed of adoption.
🔍 Decision Points
The first fork: is your enterprise IdP unified?
Already consolidated on Okta or Azure AD → a centralized broker is a natural extension. The foundation for aggregating OAuth 2.0 Token Exchange for agents already exists.
IdP is fragmented across business units → start with federated authentication. Underestimating integration costs is a costly mistake.
Next, check the number of systems the agent accesses. At 5 or more, centralized management efficiency surpasses individual integration management. At 3 or fewer, per-system integration is operationally viable.
Data sovereignty and regional regulations add another dimension. When GDPR or China's Data Security Law prevents authentication tokens from leaving specific regions, federated authentication or region-specific brokers become necessary 🌍
💡 Key Details
The centralized broker's strength lies in zero-trust alignment. All access flows through a single policy engine like OPA or Cedar, enabling least-privilege management of agent permissions at scale. Periodic permission audits can be conducted centrally, and compliance with frameworks like SOX or ISMAP becomes more straightforward. If you are building an agent platform from scratch with the luxury of greenfield auth design, this is the default choice.
Federated authentication's strength is leveraging existing investments and deployment speed. When each SaaS already has mature SAML/OIDC integrations, rebuilding authentication specifically for agents lacks justification. This approach is also practical during transitional periods — such as post-M&A — when different auth infrastructures remain an ongoing integration challenge. Centralizing fine-grained permission models unique to each system (Salesforce profiles and permission sets, for example) risks losing granularity.
The most common hybrid is "centralized broker plus local scope-down": authenticate through Okta, then apply agent-specific scope restrictions at each SaaS. Another practical pattern is "federation plus centralized audit" — delegate authentication to each system while aggregating all auth events into a SIEM (Splunk, Sentinel) for unified audit trails 🔐
⚖️ Trade-offs
The centralized broker's biggest risk is becoming a single point of failure. When the ID broker goes down, every agent stops. Without redundancy and circuit breaker design, the impact is organization-wide. There is also the agility concern — when every permission change requires a ticket through the centralized broker, business units feel constrained.
Federated authentication's risk is token management complexity. Each SaaS has different token lifecycles (Salesforce defaults to 2 hours, ServiceNow to 30 minutes), and managing refresh failures and token expiration across all of them generates frequent incidents. Authentication strength (MFA requirements, session timeouts) varies by system, and the weakest link becomes your security vulnerability.
The dual-management trap during migration is another common pitfall. When both systems coexist during a federated-to-centralized transition, confusion about the source of truth is inevitable. Migration plans must include clear cutover criteria ⚠️
🛠️ Use Cases
Large enterprise with unified IdP: When Okta is already company-wide and agents access 10+ SaaS platforms, a centralized broker is optimal. Issue scope-restricted tokens via Token Exchange, enforce unified policies with OPA, and configure local scope-down on agent-specific service accounts at each SaaS 🏢
Post-M&A integration transition: When two companies with different IdPs are mid-integration, start with federated authentication for rapid deployment, aggregate all auth events into a SIEM for audit centralization, and gradually migrate high-frequency access targets to the centralized broker 🔄
Global enterprise with strict regional regulations: Under GDPR or data localization requirements, deploy region-specific ID brokers or leverage existing regional IdPs in a federated model. Ensuring authentication tokens do not cross regional boundaries is a hard requirement 🌐
Practical tip: Regardless of approach, encrypted storage of agent-held tokens and minimizing in-memory retention time are non-negotiable. If your migration timeline is under 3 months, go federated for quick deployment. For longer horizons, plan a phased migration toward centralized brokering 💪
#
AIAgents# #
EnterpriseArchitecture#