Kong AI Gateway OIDC and single sign-on

The open-source Kong Gateway 3.9 line does not include an OpenID Connect plugin for AI routes. The OIDC plugin is Enterprise-only, and the open-source line offers key, JWT, OAuth2, basic and LDAP authentication plugins instead, so SSO with the company identity provider needs an Enterprise plan or a different design.

On this page

Does Kong AI Gateway SSO work on the open-source 3.9 line?

OpenID Connect SSO is Enterprise-only in Kong, and the open-source 3.9 line with its AI plugins has no OIDC plugin. A platform, IT or security lead who needs staff to sign in to AI routes with the company identity provider has to settle the edition question before the identity design can start. Kong's plugin hub labels the OpenID Connect plugin as Enterprise only, so an open-source answer to that checklist item should say so plainly and name the edition being run. Treat the edition, the identity design and the controls kept outside the gateway as three separate decisions, each answered on its own record.

Kong's pricing page lists SSO and RBAC under Enterprise for AI Management as of December 2026, which is the place to confirm what a paid tier changes before you request a quote. The open-source authentication plugins in the repository, including Key Auth, JWT, oauth2, basic-auth and ldap-auth, mainly authenticate callers: applications, services and API consumers that present a credential. Their documented role is caller authentication, so whether any of them can carry a staff sign-in through your identity provider needs confirmation with Kong for your exact setup. Record that answer in writing before your team relies on it.

The decision therefore has three parts. First, the edition: whether your AI routes justify an Enterprise subscription, which the Kong AI Gateway license and Kong AI Gateway Enterprise pages cover in detail, so read them before comparing options here. Second, the identity design: which identity provider you use, how its groups map to gateway access, and whether staff sign in to the gateway itself or to the AI application behind it. Third, what stays outside the gateway: session lifetime, multi-factor enforcement and offboarding may belong in the identity provider or the application, and your team should write down which layer owns each control. Ask Kong and your identity team to confirm each part before the checklist item is closed.

Which authentication options Kong AI Gateway offers by edition

This table compares which authentication and access plugins are open source on the 3.9 line and which need Kong's Enterprise plan or an AI license. Read each row against the last column before you design sign-in for AI routes. The main takeaway is that OpenID Connect and AI Proxy Advanced are paid features, so an open-source build must confirm sign-in and admin access separately.

CapabilityOpen-source 3.9 lineEnterprise planWhat the buyer must build or confirm
OpenID Connect pluginNot available as an open-source pluginEnterprise onlyConfirm your Enterprise entitlement before designing OIDC sign-in for AI routes.
Key Auth and JWTIncluded, minimum Kong Gateway 1.0No Enterprise label on plugin pagesPlan API key or token issuance and rotation for AI routes. Confirm your version is 1.0 or later.
oauth2, basic-auth and ldap-authIncluded, no Enterprise labelNo Enterprise label on plugin pagesChoose the method that fits your directory and test LDAP bind and credential handling on your own servers.
AI ProxyIncluded, needs Kong Gateway 3.6 or laterNo AI License label on plugin pageConfirm the provider list and the Kong Gateway version pinned in your deployment.
AI Proxy AdvancedNot among the six open-source AI pluginsLabelled AI License RequiredGet the AI license terms in writing before designing routes that depend on this plugin.
SSO and RBAC for AI ManagementTo confirm with Kong for the 3.9 lineListed under Enterprise for AI ManagementAsk Kong which SSO and RBAC features your edition includes before you commit to a design.
Admin-plane sign-in and RBACTo confirm for the open-source 3.9 lineListed under Enterprise for AI ManagementConfirm how operators sign in to the admin interfaces and who can change plugin settings.

How Kong AI Gateway SSO authenticates callers on AI routes

On AI routes, Kong Gateway is the enforcement point. An authentication plugin attached to a route or service checks each caller before the request reaches the model provider. The identity itself stays in your identity provider or directory. The gateway only decides whether a request carries acceptable proof of identity. This split shapes how you document access: the policy a reviewer reads lives in the gateway configuration, so each AI route needs a named authentication plugin, a named owner, and a test showing that an unauthenticated call is refused before it reaches the upstream model.

The available plugins fall into two groups. Token-based plugins, such as OpenID Connect and JWT, validate tokens that an identity provider issued. The gateway checks the signature and expiry against keys it trusts, then reads the claims. The OpenID Connect plugin is labelled Enterprise only in Kong's plugin hub, so on the open-source line the JWT plugin is the token-validation option to evaluate first. Credential-based plugins, such as Key Auth, basic authentication and LDAP, check secrets or directory entries that the gateway or a directory holds. Key Auth and JWT appear in the open-source repository without an Enterprise label, as do basic-auth and ldap-auth. Choose the group based on where your users' identities already live.

Authentication only tells the gateway who the caller is. Deciding what that caller may reach is a design task you own. Plan to map identity claims or groups to route access before the build starts, for example allowing one group on a general model route and a smaller group on a route that uses a more expensive model (illustrative). Write that mapping down, because it becomes the evidence an access review will ask for. The exact token validation, issuer and audience checks, and claim handling depend on the plugin version and its settings, so confirm them in the OpenID Connect plugin documentation before a reviewer relies on them. Also confirm whether the group-based SSO and role controls that Kong's pricing page lists under Enterprise for AI Management are needed for your model of access.

Decisions to make before choosing the SSO design

Each decision below changes which authentication plugins you can use and where they run. Settle the identity provider and caller types first, because they constrain the rest. Check the edition question early, since OpenID Connect is not available in the open-source plugin set.

Identity provider and protocol

Decide whether you have an OpenID Connect provider, a directory reached through LDAP, or tokens issued by another system. OpenID Connect uses the Enterprise-only OpenID Connect plugin, so an OIDC design needs that edition from the start. Open-source routes can instead validate JWTs from your issuer or check LDAP credentials. Confirm the discovery URL, signing keys and claims your provider publishes before you choose a plugin.

OpenID Connect plugin

Caller type and authentication

Staff signing in through a browser, backend applications calling APIs, and AI agents acting for a user each need a different credential. Staff flows usually depend on an interactive login from your identity provider, while services often use a client credential or a signed token. Agents add one more question: whether the token represents the agent, the user it acts for, or both. Map each caller type to one authentication method before you configure any route.

Role model and enforcement point

Decide which roles exist and where each one is checked: on the route, in a consumer group, or in the upstream application. Route-level checks are easy to review but repeat logic when several routes share a role. Consumer groups suit credential-based access, and the upstream application stays the place for business rules about records. Give each rule one owner so an auditor can trace a denied request to a single configuration.

Edition: Enterprise or open source

Compare Enterprise OIDC with open-source credential plugins before the design is fixed. The open-source line includes Key Auth, JWT, OAuth 2.0, basic auth and LDAP, which cover many service and staff cases without an Enterprise license. Kong's pricing page lists SSO and RBAC under Enterprise for AI Management, so check that list against the features you need. Ask Kong, in writing, which edition covers the plugins and versions in your design.

Kong pricing page

Log destination for auth events

Decide where authentication events go before go-live, including failed logins, token rejections, consumer changes and admin actions. Gateway nodes spread across several sites may need one central store so the security team can search a single place. Check which logging plugin or export path your chosen edition provides, and whether events include the caller identity needed to investigate an AI agent's actions. Agree retention and access with your security team, because these logs often contain personal data.

Network path to the identity provider

In segmented or air-gapped networks, the gateway must reach the identity provider, its key endpoints or the LDAP directory. Map which nodes make those calls, whether they use a proxy, and which firewall rules, DNS records and certificate chains they need. Plugins that fetch keys or discovery documents at runtime may fail when that path breaks, so test identity provider outages and cached key behavior. Confirm the exact outbound calls each plugin makes in your edition before you request firewall changes.

Decision path for choosing an authentication plugin on AI routes

The diagram starts with one question: is the caller a person signing in with the company identity provider? A yes sends the reader to the licensed Enterprise plan check. With Enterprise, the OpenID Connect plugin (openid-connect) goes on the AI route. Without it, the team documents a gap review and picks an alternative such as LDAP or an outside sign-in component. A no, for service callers, leads to key-auth or jwt credentials managed outside the gateway. Every branch ends with a test route and a check of authentication logs.

Branches from the sign-in question to plugin choice, testing and logs.

Where Kong AI Gateway SSO falls short without Enterprise

The open-source Kong Gateway includes key, JWT, OAuth2, basic and LDAP authentication plugins, but not OpenID Connect single sign-on. Each card below names a gap that appears once AI routes serve staff and agents, along with the usual way teams close it: the Enterprise plan, identity provider policy, access reviews or logging they run themselves.

No OpenID Connect plugin

The OpenID Connect plugin is Enterprise only, so the open-source line has no native OIDC flow for signing staff into AI routes through your identity provider. Teams usually either buy the Enterprise plan for that plugin or place an authenticating proxy in front of the gateway. If you choose the proxy route, confirm that it passes verified identity to Kong and that Kong still enforces access on each AI route.

OpenID Connect plugin

Admin RBAC needs confirmation

Kong's pricing page lists SSO and RBAC under Enterprise for AI Management, so role-based access for admins should not be assumed on the open-source line. Ask Kong which admin roles, Kong Manager sign-in and Admin API controls ship in the 3.9 release you plan to run, and get the answer in writing. Until then, keep the Admin API on a private management network and limit who can change AI plugin configuration.

Kong pricing

Joiner, mover and leaver handling

Access ends only where your credentials end. Without OIDC, the gateway relies on the consumers and keys you create, so a leaver with a live key keeps working on AI routes after the identity provider disables their account. Map each AI route to an identity provider group, let provisioning drive group changes, and run periodic access reviews that compare route consumers against current staff. Confirm who revokes gateway credentials when someone moves teams.

Password-based LDAP and basic auth

The repository ships the basic-auth and ldap-auth plugins without an Enterprise label, but both verify passwords on each request. Basic auth needs TLS on every hop, and LDAP needs the directory reachable from the gateway network, which widens what that network can reach and ties sign-in to directory availability. Cover these with TLS enforcement, a read-only service account, directory access limited to the gateway subnet, or a move to OIDC through Enterprise.

Separate credentials for agents and MCP

Coding agents and MCP servers call AI routes without a person at the keyboard, so they need their own credentials, separate from staff sign-in. Issue one consumer per agent or server, scope each to the routes it needs, store keys in a secrets manager and rotate them on a schedule you set. Check whether a JWT issued by your identity provider fits your service accounts before you choose between it and API keys.

Key Auth plugin

Authentication event logs in your store

Authentication events on AI routes are only useful if they reach a store your security team controls and can search. Plan to ship gateway logs to a log platform you run, with retention set by your own policy, and confirm which failed and successful authentications the open-source plugins record. Test a failed sign-in and a revoked key end to end, then check that each event arrives with the consumer name and route.

How the SSO answer changes by identity provider and team size

The identity provider you run decides which open-source plugin can check the caller's identity. The OpenID Connect plugin is labelled Enterprise only, so the open-source path validates tokens your identity provider issues, using the JWT plugin, or checks directory credentials with ldap-auth. Entra ID, Okta and Keycloak each shape tokens differently, so most of the work is in the claim mapping. Ask which group or role claims each AI route needs, because that list shapes the design more than the provider brand does.

  • Entra ID: Confirm the issuer value, the audience your routes expect, and the claim that carries group or role membership.
  • Okta: Confirm which authorization server issues the tokens and which custom claims your routes read.
  • Keycloak: Confirm the realm issuer URL, the client audience mapping and how key rotation reaches the gateway.
  • On-premises directories through LDAP: Confirm the bind, search and TLS settings for ldap-auth before connecting any production users.

Check each protocol and claim path against the plugin documentation for your Kong Gateway version before you commit to a design.

Order of work to put SSO on AI routes in production

This sequence takes SSO for Kong AI routes from a licensing decision to a monitored production state. Each step ends with a check the team can file as evidence, and the order settles the edition question before any design work starts. Routes move to production one at a time, and the same checks repeat after each platform upgrade.

  1. Confirm the edition and license scope

    Before any design work, confirm in writing which Kong Gateway edition and license cover each AI plugin and authentication plugin the routes will use. The OpenID Connect plugin is labeled Enterprise only in Kong's plugin hub, while Key Auth and JWT appear in the open-source repository without that label, so the OIDC requirement settles the edition question first. Ask your Kong account contact to confirm, and record the answer in a scope note that names each plugin. Done when the client has signed the scope note.

  2. Choose the identity protocol and map groups

    Choose the identity protocol for each route and record why. The options are the Enterprise OpenID Connect plugin or an open-source approach such as JWT validation of tokens issued by your identity provider. Each option handles group and role claims differently, so the team tests how those claims reach the route before relying on them. Then map each identity provider group to the AI routes and models it may call. Done when the access matrix lists every route, group and consumer type, and the identity and application owners have approved it.

  3. Build and test on a non-production route

    DeployOpen engineers configure the chosen plugin on a non-production route connected to a test identity provider tenant, with a test user in each group from the access matrix. The test set covers valid sign-in, users outside each group and requests with no credentials, and each result is compared with the matrix. Keep the configuration in version control so every change is reviewed. Done when every test case matches the matrix and the test tenant settings are recorded.

  4. Define and document the break-glass path

    Define how administrators reach the gateway if the identity provider, the test or production tenant, or the OIDC path fails. Typical options include an administrative credential held in a vault with restricted access, and a written change that moves a route back to a known-good authentication method. Document who can invoke the path, where the credential is held, how each use is logged and reviewed, and how access is withdrawn afterward. Done when the security owner approves the runbook and the team has walked through it in the non-production environment.

  5. Verify token expiry, denial and authentication logging

    Test expired tokens, disabled or removed users, tokens issued for another audience and requests that the route rules deny. Confirm each denial returns the status defined in the access matrix and that the response does not expose route or upstream details. Check that every authentication event reaches the log pipeline with the consumer or user identifier, the route and the outcome. Done when the test results and one sample log entry per case are filed with the access matrix.

  6. Roll out route by route with gap review

    Move routes to production one at a time, starting with the route that has the smallest set of users and the lowest impact if access is wrong. Keep the previous configuration available until each route passes. Before each cutover, run a gap review that compares the live route against the access matrix, the logging checks and the break-glass runbook. Attach the signed review to the change record and monitor the route after cutover. Done when every route has an attached gap review and no open findings block its cutover.

  7. Retest after each platform upgrade

    Repeat the token, denial and logging tests after every Kong Gateway upgrade, on the exact version and release line the organization runs. Confirm that the version is covered by the support terms for your edition, because Kong's support policy covers Enterprise versions. Also confirm that the open-source 3.9 patch release you deploy matches the configuration you tested. Update the gap review with each result. Done when the retest is filed against the version number and the access matrix is confirmed unchanged or revised.

What a security reviewer asks to see for SSO on Kong AI Gateway

This table lists the evidence a security reviewer usually asks for when single sign-on runs on Kong Gateway, and where each item comes from. Read it as a design checklist: the first row decides the licensing question, because the OpenID Connect plugin is labelled Enterprise only while Key Auth and JWT ship in the open-source repository. DeployOpen prepares this evidence for your assessment, but independent auditors issue any audit report.

Reviewer questionEvidence to showWhere it comes from
Which plugin authenticates staff, and which authenticates services?Plugin name, scope and attached route for each caller type, with its license tierRoute and plugin export from the Admin API, checked against the plugin pages
How is the identity provider configured, and which protocol settings apply?Issuer, client registration, redirect URIs, scopes and token validation settingsPlugin configuration in version control and the identity provider's client record
Which group or claim maps to which route, and who approved the mapping?Mapping from each identity provider group or claim to allowed routes and consumersIdentity provider group export, the plugin's claim settings and the approval record
What do authentication decision logs record, and where are they stored?Sample allow and deny events with time, caller, route and reason, plus retention settingsGateway logging configuration and the retention policy of the log platform
How are non-SSO keys and secrets rotated?Rotation schedule, owner and revocation steps for API keys, JWT signing keys and client secretsKey Auth and JWT consumer records and the rotation history in your secrets manager
Which platform version runs, and is its patch level current?Running version and patch date, compared with the 3.9 line where 3.9.5 was published 2026-11-19Kong/kong GitHub releases and Docker Official Image tags; Kong's support policy covers Enterprise versions only
What network path connects the gateway to the identity provider?Firewall rules, DNS names, TLS certificate chain and egress routes from gateway nodesNetwork diagram, firewall change records and gateway egress configuration

Questions buyers ask before approving SSO on Kong AI Gateway

Does single sign-on work on the open-source Kong Gateway?

No. The OpenID Connect plugin is labeled Enterprise only in Kong's plugin hub, so OIDC single sign-on for AI routes is not part of the open-source line. The open-source repository does ship Key Auth, JWT, oauth2, basic-auth and ldap-auth plugins without an Enterprise label, which gives you API key, token and credential checks on AI routes. Those do not provide a browser sign-in flow tied to your identity provider, so treat them as a different design. Confirm the current license terms for each plugin on the plugin pages and with Kong before you approve the design, since labels may change between releases.

What does the Enterprise plan for SSO on Kong AI Gateway cost?

Kong's pricing page lists SSO and RBAC under Enterprise for AI Management, so both sit in the paid tier. Ask Kong for the current subscription price for that tier and confirm how it renews by term, since that is the license cost you will carry. The build is a separate cost, mostly one-time, paid to whoever implements it. DeployOpen does not publish a price list, and a quote follows from a written scope. Your identity provider, log store and secrets store may add licensing or hosting costs of their own. Ask any quote to list the identity providers, routes, claim mappings, testing and logging it covers, so the offers can be compared.

How much effort does an OIDC setup on Kong AI Gateway take?

Effort is set by the written scope, and no single figure applies to every environment. The main drivers are the same in most projects:

  • The number of identity providers and how many issuers and tenants each one trusts.
  • The number of AI routes and consumers that need their own access rules.
  • Claim mapping from identity tokens to Kong roles, groups and consumer rules.
  • Testing of login, token expiry, denied access and each protected route.
  • Logging of authentication events and where they land in your log store.

Ask for each driver to be counted in the quote. Confirm with your identity team how many issuers and groups you already run, since that count moves the effort more than almost anything else.

Can our internal team build Kong AI Gateway SSO without an outside partner?

Yes, an experienced internal team can build it if it has people who know Kong Gateway administration, your identity provider and your logging stack. The work is mostly configuration and testing, so the usual gap is time for testing and review. An outside partner adds capacity and a documented method, under a written scope that covers planning, implementation, testing, documentation and handover. DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted platforms inside your own infrastructure. From your side, you provide named owners for the identity provider and the gateway, access to the environments, decisions on claims and roles, and staff to review the test results.

How long does a Kong AI Gateway single sign-on project take?

The timeline is set by the written scope, which is agreed before work starts. Most DeployOpen engagements are fixed-scope, so the scope, deliverables and timeline appear in writing before any build begins. A duration cannot be stated responsibly before the scope is set, because it depends on the same drivers as effort: identity providers, routes, claim mapping, testing and logging. Other items often set the calendar, including access approvals in your environment, change windows for production gateways and the time your identity team needs to register the client. Ask for a timeline with a dependency list, so you can see which steps wait on your teams.

Which outside components does Kong AI Gateway SSO need?

Three outside components sit beside the gateway in most designs, and each needs a named owner before the build starts.

  • An identity provider that issues OIDC tokens to your users, such as one you already run for workforce sign-in. Confirm that it supports the flow you need on your Kong version.
  • A log store that receives authentication and request logs, with retention set by your compliance team.
  • A secrets store that holds the client secret, signing keys and any provider credentials, so they stay out of configuration files.

Your choice of deployment topology also changes where the gateway configuration lives, so settle that before you write the scope.

How DeployOpen implements SSO for Kong AI Gateway in your infrastructure

DeployOpen plans and builds sign-in for Kong AI Gateway in infrastructure you control, starting from the authentication plugins your edition actually includes. The open-source Kong Gateway ships Key Auth, JWT, OAuth2, basic auth and LDAP plugins, while the OpenID Connect plugin is labelled Enterprise only. We confirm that split with you in writing before any configuration begins, so your identity team knows which login path is in scope.

How we scope

  • The written scope lists each AI route and the authentication method it uses, such as JWT or Key Auth.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
  • Licensing is scoped first: if OpenID Connect or SSO features need an Enterprise subscription, the quote must say so.

How we build

  • Configure consumers and credentials for Key Auth or JWT, then test each AI route with valid and invalid tokens.
  • Place the identity provider, Kong nodes and AI upstreams in your network, with TLS configured on each hop.
  • Where the design calls for OpenID Connect, the plugin configuration is built and tested only on an Enterprise licensed gateway.

How we hand over

  • Deliverables include version-controlled configuration files, an access matrix mapping roles to routes, and the runbook.
  • Your identity team receives test evidence for login, token expiry, denied access and audit log entries.
  • Ownership of secrets, client credentials and admin access is agreed and documented before the handover closes.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, which can include gateway patch reviews.
  • Before each Kong patch or minor upgrade, we check whether the authentication plugins in use still behave as documented.
  • Confirm your support window with Kong for your chosen edition, since Kong's version support policy covers Enterprise versions only.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.