Microsoft Entra ID vs Okta vs Keycloak

Entra ID fits organizations already on Microsoft cloud subscriptions, Okta fits buyers who want a managed suite on an annual contract, and Keycloak fits teams that must run identity in their own infrastructure and own the operating work.

On this page

Microsoft Entra ID vs Okta vs Keycloak: which fits which situation

Choose Microsoft Entra ID when your workforce already runs on Microsoft 365 or Azure, choose Okta when you want a managed identity suite and can accept its contract minimum, and choose Keycloak when you need to run the identity server inside your own infrastructure and have the team to operate it. Entra ID's strength is the estate you already license: Entra ID Free ships with Microsoft cloud subscriptions and covers MFA and SSO to SaaS apps, while Entra Connect, free with an Azure subscription, synchronizes Active Directory users, groups and password hashes. The trade-off is that a tenant's data location is fixed by the country or region chosen at creation, so confirm that choice against your residency rules before you build anything. Stronger governance and protection features sit in P1, P2 and Suite licenses, so price the tier you need before you commit.

Okta fits organizations that want the identity suite run as a managed service. Its Starter suite includes Single Sign-On, Multi-Factor Authentication and Universal Directory, and Essentials adds Adaptive MFA, Lifecycle Management and Access Governance. Okta Access Gateway, a reverse proxy deployed behind your firewall, can protect on-premises apps that lack federation support, and the Okta AD agent imports Active Directory users and groups. The trade-off is commercial: Workforce Identity suites are billed per user per month, billed annually, with a $1,500 annual contract minimum, so cost follows headcount and tier. Okta also states that sub-processor processing locations can vary with the service and cell you select. Ask for the cell and sub-processor details in writing, and confirm which suite includes each feature you need.

Keycloak fits teams that must keep the identity server, its database and its logs inside their own cloud accounts, data centers or air-gapped networks. Keycloak is Apache-2.0 software, supports OpenID Connect, OAuth 2.0 and SAML 2.0, brokers logins to external identity providers and federates users from LDAP or Active Directory. The trade-off is operating work. Production needs a relational database, with PostgreSQL 14 to 18 among the supported options, and high availability designs depend on a synchronously replicated database. Your platform team, or an implementation partner working to a written scope, owns upgrades, patching, backups and certificate handling. Before you choose it, decide who gets paged when a node fails, and review the Keycloak database guide with your DBA.

Which fits your situation: Entra ID, Okta or Keycloak

This table matches five common situations to the platform that fits each one, and names the condition under which another option is the better choice. Read each row as a starting point, then test the named condition against your licenses, data location rules and team skills. The main takeaway is that existing Microsoft licensing, data residency requirements and in-house skills usually narrow the shortlist before feature depth does.

ScenarioBest fit and whyChoose another option when
Microsoft 365 or Azure with on-premises Active DirectoryMicrosoft Entra ID. Entra Connect syncs AD users, groups and password hashes, and Entra ID Free comes with Microsoft 365 and Azure subscriptions.Keycloak if identity data must stay in your infrastructure. Okta if Access Gateway must protect apps without federation support.
Cloud-first workforce with many SaaS appsOkta, built for SaaS-heavy workforces needing lifecycle management. Workforce suites are priced per user with a $1,500 annual minimum (Okta pricing page).Entra ID if you already license Microsoft 365 E3, Business Premium or E5, which include P1 or P2 (Microsoft Entra pricing page).
Identity data must stay in your infrastructure or an air-gapped networkKeycloak, self-hosted under Apache-2.0 in your cloud accounts, data centers or air-gapped network, with you running the database.Entra or Okta if a cloud region meets your rules. Entra tenant location is fixed at creation. Confirm Okta cell and sub-processor locations.
Linux and Kubernetes platform teamKeycloak, deployed with the Keycloak Operator through Operator Lifecycle Manager or kubectl, with Keycloak and client resources managed as Kubernetes objects.FreeIPA if the main need is Linux host identity, Kerberos and certificates more than web SSO.
Team with no in-house identity engineersOkta or Entra ID, since the vendor runs the service and your team only configures it.Keycloak only with an implementation partner or managed service covering upgrades, database, high availability and patching.

Microsoft Entra ID vs Okta vs Keycloak licensing: what is paid

Entra ID is sold in tiers that Microsoft lists per user, and the tier you need often depends on the Microsoft 365 plan you already pay for. Entra ID Free comes with Microsoft cloud subscriptions such as Azure and Microsoft 365. Paid tiers add per-user recurring charges, so your headcount and the features you enable set the bill.

  • Free: included with Microsoft cloud subscriptions such as Azure and Microsoft 365, covering MFA, single sign-on to SaaS apps, basic reports and self-service password change.
  • P1: listed from $7.00 per user per month with an annual commitment. Microsoft 365 E3 and Business Premium include it.
  • P2: listed from $10.00 per user per month with an annual commitment. Microsoft 365 E5 includes it.
  • Suite: listed from $12.00 per user per month and adds network access, identity protection, governance and identity verification. It requires an existing Entra ID P1 subscription.
  • Connect costs: Microsoft Entra Connect is free with an Azure subscription, but Entra Connect Health requires P1 licenses.

Check whether your Microsoft 365 plan already includes P1 or P2 before you buy them separately, and confirm current prices on the Microsoft Entra pricing page.

Microsoft Entra ID vs Okta vs Keycloak: capability side by side

This table compares the capabilities that most often decide a shortlist between Microsoft Entra ID, Okta and Keycloak: protocols, directory integration, hosting, databases, government cloud options and user export. The main split is operating model: Entra and Okta are vendor-hosted cloud services, while Keycloak runs in infrastructure you choose and operate. Where a cell says to confirm, ask the vendor or test the point in your own environment before you commit.

CapabilityMicrosoft Entra IDOktaKeycloak
ProtocolsConfirm the full protocol list with Microsoft; SSO to SaaS apps is documented.Confirm the full protocol list with Okta; SSO, MFA and API access management are offered.OpenID Connect, OAuth 2.0 and SAML 2.0, plus brokering to external OIDC or SAML providers.
On-premises directory integrationEntra Connect syncs AD users, groups and password hashes; Microsoft calls Entra Cloud Sync its future path.Okta AD agent imports AD users and groups into Okta; confirm password handling for your setup.Federates users read from LDAP or Active Directory.
Reverse proxy for apps without federationConfirm with Microsoft how apps without federation support are protected.Access Gateway, deployed behind your firewall, uses HTTP headers, Kerberos tokens and URL-based authentication.Confirm with the Keycloak project or your team how apps without federation support will be fronted.
Hosting modelCloud service; tenant data location is mapped from the country or region chosen at creation and cannot be changed.Vendor cloud with cells in the US, EMEA, Japan, Australia, Canada and India; sub-processor location varies by cell.Self-hosted in infrastructure you run; a relational database is required in production.
Supported databasesNot customer-selectable; confirm where directory data is stored with Microsoft.Not customer-selectable; confirm storage details with Okta.PostgreSQL 14 to 18, MariaDB, MySQL, SQL Server, Oracle, Aurora PostgreSQL, EnterpriseDB, Azure SQL.
Government cloud optionsUS Government and China clouds; the China cloud is operated through a partnership with 21Vianet.Okta for Government High holds FedRAMP High authorization, announced March 28, 2023; confirm current status with Okta.No hosted government cloud; authorization applies to your own deployment, so confirm with your assessor.
User exportAdmin center: Users, All users, Download users (CSV), with attributes such as userPrincipalName and mail.Password Health report CSV, Rockstar community extension, or the List Users API with a filter.Confirm the export method and attributes for your release before you plan a migration.

What drives the running cost of each platform

License prices are only part of what you pay. Each platform bills, hosts and staffs identity differently, so the running cost depends on the tier you need, the directory you sync from and how much operating work your team absorbs. Ask each vendor for a written quote that separates recurring licenses from one-time setup and exit costs.

Entra ID per-user licensing

Entra ID Free comes with Microsoft cloud subscriptions such as Azure and Microsoft 365, and covers MFA and SSO to SaaS apps. Microsoft lists P1 from $7.00 and P2 from $10.00 per user per month with an annual commitment, and includes P1 in Microsoft 365 E3 and Business Premium and P2 in E5. Per-user licenses recur, so map each user to the plan they already hold before pricing new seats. Setup and migration work is one-time. Ask the vendor to quote P1 and P2 seats separately, the commitment term, and whether Entra Suite is included.

Microsoft Entra pricing

Okta suite tiers and minimum

Okta sells Workforce Identity suites per user per month, billed annually, with a $1,500 annual contract minimum. Starter includes SSO, MFA and Universal Directory, Essentials adds Adaptive MFA, Lifecycle Management and Access Governance, and Enterprise adds API Access Management, Access Gateway and machine-to-machine tokens. Recurring cost is set by the tier and seat count, so confirm which tier includes every feature you depend on before you compare totals. Onboarding and integration work is one-time and may sit outside the subscription. Ask for the tier, seat count, renewal terms and whether Access Gateway is priced separately.

Okta pricing page

Keycloak infrastructure and database

Keycloak is licensed under Apache-2.0, so the software carries no license fee. Recurring costs are the compute, production database, backups and monitoring you run yourself. Production needs a relational database, and both supported high availability designs need a synchronously replicated database, so the engine and replication setup shape the bill. The one-time cost is the initial build and hardening. Ask any quote to separate database licenses from compute and to name the engine, replication design and number of sites.

Keycloak database guide

Keycloak staff time

Keycloak's running cost includes people as well as servers. The project plans four minor releases a year and a major release every two to three years, so someone must test, schedule and roll out upgrades on a steady cadence. Breaking changes in minor releases are opt-in, which helps, but they still need review. Running the Keycloak Operator on Kubernetes or the server distribution on virtual machines each needs its own platform skills. Staff time recurs monthly, and the first build is one-time. Ask who handles patching and on-call, and whether a retainer covers upgrade testing.

Directory sync and monitoring

Entra Connect is an on-premises application that synchronizes Active Directory users, groups and password hashes with Entra ID, and it is free with an Azure subscription. Entra Connect Health requires Entra ID P1 licenses, so monitoring the sync adds a per-user cost on top of the sign-in tiers. Okta uses an AD agent that imports AD users and groups, and Keycloak can federate users directly from LDAP or Active Directory. Sync hosting, patching and monitoring are recurring work, and setup is one-time. Ask whether the quote includes the sync server and which P1 seats Connect Health counts.

Entra Connect overview

Cost of leaving later

Entra ID's data location follows the country or region chosen at tenant creation and cannot be changed afterward, so moving regions means building a new tenant. Entra admins can download the user list as CSV, and Okta documents a Password Health report CSV, a community extension and the List Users API. Those exports cover users only, so app configuration, policies and claims need separate handling. Expect to rebuild integrations, policies and claims on the target platform. Ask each vendor which configuration can be exported, in what format, and whether API access is included.

Entra user download guide

Where identity data lives under each platform

Under Microsoft Entra ID, the data location is set early and cannot be changed later. An Entra tenant's data location is mapped from the country or region chosen when the tenant is created, so settle that choice before you register the first application or sync the first directory. Entra multifactor authentication data is stored in North America and/or the tenant's geo-location, which matters if your residency rules cover authentication signals as well as directory records. Entra is also offered in US government and China clouds, and in China the service is operated through a partnership with 21Vianet. Ask Microsoft to confirm in writing which regions cover your regulators, where support and diagnostic data are stored, and whether a tenant on the global cloud can meet the same obligations as one in a government cloud. Microsoft's data residency guidance is the starting point for that conversation.

Okta runs customers in cells located throughout the US, EMEA, Japan, Australia, Canada and India. Okta states that the location where its sub-processors process data can vary with the service and the cell you select, so map each Okta service you buy to its cell and sub-processor list before you commit identity data to it. If on-premises applications must stay behind your firewall, Okta Access Gateway is the component to examine: it is a reverse proxy deployed behind your firewall that protects on-premises apps without federation support, using HTTP headers, Kerberos tokens and URL-based authentication. Due diligence should also cover the November 2023 incident. Okta's root cause analysis, published November 3, 2023, reported that a threat actor accessed files in its customer support system associated with 134 customers, using a service account whose credentials an employee had saved to a personal Google profile. Read that account alongside your own questions: what changed in support-system access and credential storage, and what evidence Okta will share with you.

With self-hosted Keycloak, data location is whatever you build. The realm database, backups, logs and cluster run in the cloud account, data center or air-gapped network you choose, and the production databases include PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, as described in the Keycloak database guide. That gives you full control over residency, but it also means the residency decision, backup location and operator access paths are yours to document and evidence. Before you sign with any of the three platforms, get written answers on: the regions where tenant data, MFA data and backups are stored; the sub-processor list and where each one processes; who can reach support data and from which locations; and how incidents involving support systems are notified. For self-hosted Keycloak, the contracts that matter are with your hosting provider and any implementation partner, so confirm where their operators log in and where their support tooling stores your data.

How Keycloak brokers Entra ID or Okta logins and federates Active Directory

The diagram starts with a user signing in to an application that relies on Keycloak, which runs inside the client's own infrastructure. Keycloak sends the browser to Entra ID or Okta, the external provider that authenticates the user, and accepts the assertion or token it returns. Keycloak stores its configuration, sessions and linked accounts in its production database. Separately, Keycloak reads users from on-premises Active Directory over LDAP through user federation, so directory accounts stay in the client's network. Confirm the OIDC or SAML settings with each identity provider, and the LDAP or AD mapping in your own environment, before go-live.

Keycloak runs inside the client boundary; Entra ID or Okta authenticates outside it.

What implementing each platform involves, step by step

This sequence applies whether your rollout involves Microsoft Entra ID, Okta and Keycloak together or only one of them. It moves from the identity sources and applications you have, through directory sync, protocol setup and proxying, to Keycloak's platform decisions, testing and cutover. The output is a tested identity path, with a named owner for each step.

  1. Inventory identity sources and applications

    List every user directory (Active Directory forests, existing cloud directories and any LDAP stores), every application that signs users in, and the protocol each one uses: OIDC, OAuth 2.0, SAML 2.0 or none. Mark which applications support federation and which are legacy apps that need a proxy. Your team owns this step because only your organization knows its applications and their owners. The admin consoles for Entra ID and Okta can export user lists, which helps with the directory side, but confirm the export fields in your own tenant. Done when one signed-off register lists the owner, protocol and hosting location for each application.

  2. Choose the directory sync or federation path

    Decide how directory users reach each platform. For Entra ID, the options are Microsoft Entra Connect, an on-premises application that synchronizes users, groups and password hashes, or Entra Cloud Sync, which Microsoft describes as the future of synchronization. For Okta, you install the Okta AD agent and import AD users and groups. For Keycloak, you configure LDAP or Active Directory user federation, or broker logins to an external OIDC or SAML provider. Your team owns the sync servers, service accounts and attribute mapping. The vendor runs the cloud service. Done when a test user from each source signs in and shows the expected groups.

  3. Configure each application's protocol

    Register each application for its protocol: OIDC or OAuth 2.0 for modern web and API clients, and SAML 2.0 for applications that expect SAML assertions. In Entra ID and Okta, this means app registrations or app integrations in the admin console. In Keycloak, it means clients and realm settings in the admin console, or client resources managed by the Keycloak Operator on Kubernetes. Your team owns redirect URIs, claim mappings and signing certificate lifecycles, because those depend on each application. Done when each application completes a sign-in with the expected claims and no broader permissions than it needs.

  4. Place a proxy in front of legacy apps

    Applications without federation support need a proxy or gateway. Okta Access Gateway is a reverse proxy deployed behind your firewall that protects on-premises apps using HTTP headers, Kerberos tokens and URL-based authentication. Keycloak's documented model is OIDC and SAML clients, so legacy apps usually need a separate reverse proxy or gateway in front of them, and you should confirm that pattern with your team. Confirm the Entra ID option for on-premises apps with Microsoft before you assume one exists. Your team owns the network path, certificates, header trust rules and any app-side changes. Done when each legacy app is reachable only through the proxy.

  5. Set up Keycloak's database and high availability

    For Keycloak only, choose a production database from the supported list, which includes PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. The default dev-file database is for development only. Choose a high availability design: one cluster optionally spread across availability zones, or the multi-cluster v2 design. Both supported designs need a synchronously replicated database. Then choose the install route: the Keycloak Operator through Operator Lifecycle Manager, which Keycloak recommends, or kubectl on Kubernetes, or the server distribution on virtual machines. Your team owns the database, load balancer, sizing and backups. Done when a node failure and a database failover both pass in a test environment.

  6. Test sign-in, provisioning and failure paths

    Test each path before any user depends on it: sign-in for each application and protocol, MFA enforcement, group-based access, account disablement and deprovisioning, and the proxy path for legacy apps. Review the conditional access or policy rules in Entra ID and Okta as well. For Keycloak, add the node-loss and database-failover tests from the previous step, and rehearse the upgrade procedure on a copy of the environment. Keep the audit logs from each test. Your team owns the test cases and sign-off. A partner can run this work under a written scope. Done when every test case has a pass result or a documented fix followed by a retest.

  7. Cut over and decommission the old path

    Move users in groups, starting with a pilot group, while the previous identity path stays available for rollback. Update DNS, application configuration and sync scope as each group moves. Once every application has signed in through the new platform and the rollback window has closed, disable the old sign-in path. Then remove sync agents and federation trusts you no longer need, and revoke unused service accounts and certificates. Record who approved each step. Done when the old path shows no sign-ins, its agents and accounts are removed, and the runbook describes the new state.

What buyers ask before choosing or hiring help

Is Keycloak free to run in our own infrastructure?

Keycloak's software is free to use: it is licensed under Apache-2.0, so there is no license fee for the server itself. The cost of running it is what you pay for infrastructure, people and time. Expect recurring costs for virtual machines or Kubernetes nodes, a production relational database such as PostgreSQL, backups, monitoring, and the staff who patch and upgrade it. These costs grow with user volume, the number of environments and how many high availability sites you run. If you want vendor support, Red Hat offers a supported distribution, the Red Hat build of Keycloak, and you should confirm its terms directly with Red Hat. Ask any implementation partner to price these components separately in the written scope so you can see which costs are one-time and which recur.

How long does an identity platform implementation take?

No timeline is fixed until the scope is known, so the written scope is what sets it. The main drivers are the number of applications to onboard, the protocols each one needs (OpenID Connect, OAuth 2.0 or SAML 2.0), how many directories or upstream identity providers you federate or broker, whether you need custom login flows or branding, the database and high availability design, and how many environments and cutover waves you run. Each one adds configuration, testing and sign-off work. Most DeployOpen engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts. Ask the timeline to list each milestone, the client dependencies it assumes and the test exit criteria. If a quote gives a duration without a scope, ask what it assumes.

What does an identity implementation need from our team?

Name the people and access before work starts. Typical needs are read access to Active Directory for user federation, a database instance with backups and a dedicated service account, DNS records and certificates for each hostname, and network paths between the identity servers, the directories and the applications. Operations staff own the running system after handover, including patching, monitoring, backups and on-call response. Security or IAM staff must approve claim mappings, admin roles and MFA policies. Ask for the exact list in the written scope, with the party responsible for each item and the point at which it is needed, so access gaps show up early. For Entra ID or Okta, also confirm which tenant administrator roles you will grant, to whom and for how long.

Can our own team implement Keycloak without a partner?

Often yes, if your team already runs Linux, a relational database and a deployment pipeline, and has someone who can review OpenID Connect and SAML configuration critically. Keycloak publishes its server documentation, database requirements and an Operator for Kubernetes and OpenShift, so the building blocks are public. The harder parts are usually the combinations: high availability with a synchronously replicated database, Active Directory federation, upgrades between releases and a tested recovery path. Be candid about bench strength. A single engineer who has not run an identity provider before will carry upgrades and incidents alone. Compare your internal plan with a written partner scope, and check which parts your team would still own after handover.

Can we export users and groups from Entra ID or Okta?

Yes for user lists, but confirm the full set of data you need before you plan a move. Entra ID lets administrators download the user list as a CSV from the Entra admin center under Users, All users, Download users. The file includes attributes such as userPrincipalName, mail, department and on-premises identifiers, as described in Microsoft's user download guide. Okta documents three routes for a list of active users: the Password Health report CSV in the Admin Console, the community Rockstar browser extension, or the List Users API with a filter. Group memberships, application assignments, MFA enrollments and policies may need separate exports or API calls, so list each object type in your inventory. Confirm with each vendor whether password data can leave the platform at all, because a user list export does not by itself move credentials.

What does a Keycloak upgrade involve, given its release cadence?

An upgrade is recurring operating work, and its size depends on how far you move and how much custom code or configuration you carry. Since Keycloak 26.0, the project plans four minor releases a year and a major release every two to three years, and it says breaking changes in a minor release are opt-in. That means a minor upgrade is usually smaller, but you still need to read the release notes, then test your realms, clients, custom providers and themes in staging before production. The current release, 26.8.1, was published on October 13, 2026. Plan a regular upgrade schedule and keep a tested rollback path for each change window. The project's release updates post explains the backwards compatibility policy.

Can DeployOpen support Entra ID or Okta directly?

DeployOpen's implementation scope covers self-hosted open-source platforms, such as Keycloak, inside your own cloud accounts, data centers or air-gapped networks. Entra ID and Okta are vendor-hosted services, so they sit outside that core scope. Work that touches them can still be scoped in writing when it connects to a Keycloak deployment, for example federating Keycloak to an Entra ID or Okta tenant, brokering logins from one, or planning an export. Such work should name the tenant, the admin roles granted, the change window and who approves changes on the vendor side. Confirm the exact boundaries in the written scope before work starts, including what will and will not be changed in the SaaS tenant.

Where does identity data live in each platform?

In Keycloak, identity data sits in the database and infrastructure you choose, so data location follows your own design. An Entra ID tenant's data location is mapped from the country or region chosen at tenant creation and cannot be changed afterward, and Entra multifactor authentication data is stored in North America and/or the tenant's geo-location. Okta operates cells in several regions, including the US, EMEA, Japan, Australia, Canada and India, and states that where its sub-processors process data can vary with the service and cell you select. Ask each vendor in writing where each data type, including logs and backups, is processed and stored, and which sub-processors are involved. Your compliance team should review those answers against its own data handling rules.

How DeployOpen helps choose and implement without favoring a platform

DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, upgrades and supports self-hosted open-source platforms inside your own infrastructure. We are not a reseller or partner of Microsoft or Okta, so the shortlist starts from your requirements, hosting limits and team skills. Keycloak is the open-source option in this comparison, and it is the platform our implementation work covers.

How we scope

  • The written scope names each platform in the evaluation and states which ones DeployOpen would implement.
  • Engagements are fixed-scope, so deliverables, timelines and responsibilities are agreed in writing before work starts.
  • Write down data location, admin roles and directory sources for Entra ID and Okta before the quote is requested.

How we build

  • For Keycloak, the build covers the database, high availability design, brokering and LDAP or Active Directory federation.
  • Any work on Entra ID or Okta is tested against the directory, sign-in flows and admin settings named in scope.
  • Security testing covers application and API sign-in, token handling, MFA enrollment and admin console access per platform in scope.

How we hand over

  • Documentation covers the architecture, configuration, access model, backup and restore steps, and upgrade runbook for the chosen platform.
  • Compliance evidence for your assessors covers configuration records, access reviews and audit logging settings.
  • Independent auditors issue any audit report or certification, and DeployOpen does not.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the build is handed over.
  • Keycloak plans four minor releases a year, and the project says breaking changes in minor releases are opt-in.
  • Confirm in writing whether a retainer covers Entra ID or Okta changes, since those are vendor-run services.

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.