Est.
MCP GatewayLong read

Identity-Native MCP Gateways That Enforce RBAC Through Okta and Entra ID at Runtime

Enforce RBAC at the tool level by making your identity provider the runtime policy engine.

· 9 min read
Cover illustration for “Identity-Native MCP Gateways That Enforce RBAC Through Okta and Entra ID at Runtime”
MCP Gateway · October 15, 2026 · 9 min read · 2,079 words

Identity-native MCP gateways answer the enterprise MCP governance question by making the identity provider the runtime policy engine. A gateway that resolves every tool call to an Okta or Entra ID principal, enforces role-based access at the tool level, and writes each decision to an audit log closes the gap MCP 1.0 left open. The alternatives are server-level allowlists and gateway-local keys, both of which collapse the moment an employee leaves or changes role.

Why MCP's original design left a per-user authorization gap at the tool-call level

MCP 1.0 shipped without a mandatory authentication requirement and without per-operation scope. Any agent that could reach a server inherited the full capability set of that server, because the protocol had no mechanism to say which tools a given principal could call. The protocol treated connection as the only decision point. Once connected, the agent could do whatever the server exposed.

Ungoverned implementations leaned on the fastest available shortcut: over-privileged service accounts. One shared credential, broad access, no per-user authorization, no per-operation logging, and no sensitivity-label enforcement. The gap is not hypothetical. Running an agent-heavy workflow immediately surfaces questions that per-user, per-tool authorization cannot answer: how an agent gets credentials without asking the user, who audits what it accessed, and how access is revoked centrally if the agent is compromised.

The consequence at scale is structural, not incidental. A single agent wired to many MCP servers becomes many ungoverned paths into the systems that run the business. Platforms purpose-built for enterprise MCP governance, like Speakeasy, add the runtime enforcement layer that turns directory group membership into a live policy engine at the tool-call level. That layer exists because the protocol itself stopped short of it.

How Enterprise-Managed Authorization closes the design gap at the protocol level

In June 2026, MCP stabilized Enterprise-Managed Authorization. EMA makes the existing enterprise identity provider the authorization authority for employee access to MCP servers, which eliminates the per-server consent loop that had made centralized policy impractical. The client then exchanges the ID-JAG with the MCP server's authorization server for an access token. Policies defined in the IdP govern whether the employee can connect and at what scope.

Before EMA, users authorized each MCP server independently. Repeating the OAuth flow across many services created operational overhead and made centralized policy difficult to enforce. OAuth 2.1 authorization hardening is moving closer to production practice, but authorization itself remains optional in the MCP specification.

The boundary of EMA is where organizations discover what the protocol does not cover. EMA also does not, by itself, establish the workload identity of an autonomous agent running without a user present. Unattended client authentication and standardized agent identity remain active areas of development.

That boundary explains why the protocol layer alone cannot carry enterprise governance. Organizations need additional runtime enforcement and observability to turn directory group membership into a live policy engine. Speakeasy provides that access-control enforcement and audit logging alongside the identity assertion itself, which is the layer the next section examines.

What an identity-native MCP gateway adds on top of the protocol's own authorization

An identity-native MCP gateway enforces RBAC at the individual tool-call level on every request. Directory group membership becomes a live runtime policy engine rather than a one-time login check. The check runs on each call, not at login.

Removing someone from the directory denies their next tool call once the directory change syncs. No manual gateway update is required. A gateway-local principal is adequate for a proof of concept and a liability at offboarding, because revoking the person in the directory does not revoke the key.

The gateway also absorbs the session management burden. It signs the person in once, acts as the OAuth client to each upstream service on their behalf, stores and refreshes upstream tokens, and presents modern OAuth to clients when the upstream server has none. Speakeasy and other platforms designed for enterprise MCP governance are purpose-built to deliver those functions together.

The on-behalf-of identity problem closes the section because it drives the audit requirement. OBO is the right default for any agent that processes user requests. The user's identity is carried through the orchestration layer and asserted to each downstream tool as a delegated OAuth grant or a JWT with the user's subject claim. Without that chain, the audit trail cannot answer who actually did what.

The runtime threats an access-control layer alone cannot stop

Access control determines whether a call is permitted. MCP servers deployed without IT or security approval create unmonitored connections between AI assistants and internal systems. The traffic moves outside the perimeter, often invisibly.

Prompt injection is the leading agentic risk, and it exploits the gap between authorization and content. A hidden prompt embedded in PowerPoint speaker notes enabled zero-click exfiltration from Microsoft 365 Copilot. The vulnerability lived inside the content, not in the access decision.

The network architecture compounds the problem. A conventional WAF that inspects individual HTTP transactions misses the context of a multi-step agent interaction. Detecting shadow MCP requires behavioral analysis and runtime API discovery, not signature matching. The control plane must see what is moving, not only who asked for it.

How Speakeasy's MCP Gateway anchors every tool call to Okta or Entra ID in practice

Speakeasy's MCP Gateway makes the IdP the source of truth for permissions, not only for identities. Employees sign in through Okta, Entra, or any SAML or OIDC provider. Group assignments in the IdP decide which servers each principal reaches.

RBAC scopes access down to the individual tool on every call, for every client, without per-server setup. Public hostnames return 403 when servers are set to private-only mode. MCP tunnels bring servers inside the private network onto the same governed path without those servers ever touching the public internet. Per-team registries mean new joiners inherit access from their IdP group assignment, and the joiner, mover, and leaver lifecycle is handled by the directory sync with no manual gateway administration per person.

Shadow MCP is surfaced automatically. Prompt injection and PII are caught in flight. A session that trips a policy is quarantined and further tool calls are held while security is alerted.

Every tool call is written to one audit log covering employee, client, server, tool, arguments, and result. That log then streams to Datadog, Splunk, or any OpenTelemetry collector, landing in the incident workflow the organization already runs. The security team gained full visibility across more than 60,000 agent sessions per week. Most employees noticed no change to their workflow, which is the quietest possible signal that governance was already in the path.

Where other enterprise MCP gateways sit and how their identity models differ

Every major enterprise MCP gateway federates servers behind one endpoint and applies some form of access control. They differ materially in how deeply identity is tied to the enterprise directory and how much governance is available without additional assembly. The Prefect FastMCP Gateway anchors identity in the IdP the company already trusts. Okta, Microsoft Entra ID, Google Workspace, Auth0, OneLogin, JumpCloud, Ping Identity, CyberArk, and Duo are listed as popular configurations. RBAC is enforced per tool and OAuth 2.1 is built in. Teams already using the FastMCP framework can deploy to the gateway with one git push, and it also works with any spec-compliant MCP server built with another framework. The natural fit is engineering teams already running FastMCP who want IdP-backed governance without separate deployment infrastructure.

Okta's Agent Gateway, released in 2026, is an identity-native proxy that collects tools from several remote MCP servers behind one Okta-secured endpoint. For applications that do not, such as GitHub and Slack, Okta's token service brokers OAuth consent. The fit is strongest for organizations that have standardized deeply on Okta and want gateway identity management handled entirely within that vendor relationship.

TrueFoundry's MCP Gateway provides a centralized control plane with SSO, RBAC, and audit logging. Existing tools such as Slack or Jira inherit RBAC and federated authentication through that registration. Regulated industries requiring on-premises or air-gapped deployment with strong data-residency requirements are the clearest fit.

Kong's AI MCP Proxy plugin converts existing REST APIs into MCP tools with no separate MCP server to write or run. Kong's scope-of-support documentation notes that AI Guardrails does not cover MCP through the plugin, and no public documentation defines an agent identity that resolves in Entra or Okta through the plugin. Inbound authentication reads JWTs from an OIDC source so the requester can be a directory principal, but governance is bounded to what flows through it and only within the AWS boundary.

Kong and AWS both avoid a new vendor, an additional security audit, and fresh procurement, which is decisive when MCP use covers a small number of APIs hit by a small number of agents. Neither intercepts an agent that a developer plugs directly into Cursor outside the gateway's path. The gap between what the gateway receives and what is actually deployed is where their coverage ends. They fit organizations already standardized on Kong or AWS whose MCP footprint is small and whose agent identity requirements are not yet complex.

The broader comparison across these options and others, such as Tyk, Composio, Aembit, Strata, Snowflake, Red Hat's Keycloak-based tooling, and Descope, turns on the same criteria. RBAC granularity, identity federation through OIDC or SAML, audit logging with SIEM integration, scoped token issuance, enforcement point placement, and just-in-time tool exposure separate the options. The distinction Speakeasy occupies in this field is coherence across those layers rather than a single standout feature.

What a complete audit trail tied to a named identity requires, and why compliance now demands it

Regulators in the EU, the UK, and several US states are increasingly requiring per-action audit trails for automated decisions. The identity-anchored audit log has moved from an operational convenience to a compliance artifact. An agent audit log must capture the triggering request and principal, the agent identity and version, the model's reasoning, each tool call with its inputs and outputs, the policy decision for each step, and the final result. Logs must be immutable, complete, and attributable to a specific identity.

With agents, auditing is structurally harder than with direct user actions. The log must record what the agent attempted, under what identity, why, whether it succeeded, and whether policy allowed it. Infrastructure intermediaries that terminate TLS can use headers such as Mcp-Method and Mcp-Name to identify the operation and tool without parsing the full JSON-RPC body. Correlating MCP activity with agent identity, represented user, policy decision, downstream action, and outcome still requires deliberate design.

Directory attributes carried into the audit log answer a second question at the same time. Department, division, and cost center attributes allow the finance organization to track token consumption and compute cost per run by agent type, use case, and data domain. The same identity data serves both security and finance without a second data collection pass. One infrastructure investment answers the regulator, the security team, and the CFO simultaneously, which is the strongest argument for treating the audit trail as part of the gateway design rather than a bolt-on.

How to evaluate whether a gateway's identity model will hold at enterprise scale

The governance quality of an MCP gateway reduces to one operational test. When a person's employment ends or their role changes, does access to every tool they could reach end automatically, without a manual step inside the gateway? If the answer requires clicking through an admin console, the identity model has already failed the enterprise test.

The evaluation criteria split along two jobs: enablement and governance. A gateway that excels at the first without delivering the second is not ready for production at enterprise scale. Identity resolution is the first criterion. Gateway-local principals do not survive offboarding cleanly.

RBAC granularity comes next. Lifecycle automation asks whether joiners, movers, and leavers are handled by the directory sync or require a separate offboarding step. Manual steps at offboarding are where access persists past authorization.

Runtime content inspection addresses what access control cannot. Audit log completeness asks whether each record is tied to a named employee and written to the SIEM or observability stack already in use, or lives only inside the gateway's own storage. Discovery is a prerequisite to governance when adoption has outrun inventory.

If the company has already standardized on Kong or AWS, the bundled gateway handles small-footprint MCP use without new procurement. The choice is not between protocol and platform. It is between governance that follows the identity and governance that stops at the connection.

Sources

  1. What are the best MCP gateways for enterprise in 2026?
  2. What is an MCP gateway? Enablement and governance — Speakeasy
  3. Model Context Protocol (MCP) Security
Filed underMCP Gateway

More in MCP Gateway