AD FS vs Okta vs Keycloak: which fits your situation
Choose AD FS only if your identities already live in Active Directory on Windows Server, your applications depend on it, and you have a dated plan to move them. AD FS is a federation role in Windows Server that issues sign-in tokens for AD accounts. Microsoft's AD FS overview highly recommends migrating to Microsoft Entra ID over upgrading to the latest AD FS version, so treat a new AD FS build as a stopgap. If your Windows team already operates AD DS, AD FS is the smallest change to what exists, but it is the platform you would be exiting. Its farm also needs a federation server layer and, for extranet access, the Web Application Proxy role, so the operating footprint grows with the number of relying parties. Teams with mostly Linux and Kubernetes workloads usually gain little from it.
Choose Okta when you want a vendor-hosted workforce suite and your team does not want to run identity infrastructure. Okta sells Workforce Identity suites per user per month, billed annually, with a $1,500 annual contract minimum, according to its pricing page. Cost therefore scales with headcount and the suite tier, and the Starter suite covers Single Sign-On, Multi-Factor Authentication and Universal Directory. Okta lists cells in the US, EMEA, Japan, Australia, Canada and India, and says sub-processor processing locations can vary by service and cell. Ask for the exact processing and storage locations in writing before assuming data stays in one jurisdiction. If you need to protect on-premises apps without federation support, confirm that Okta Access Gateway covers your app types.
Choose Keycloak when you need the identity server inside your own infrastructure and have people to run it. Keycloak is Apache-2.0 licensed, supports OpenID Connect, OAuth 2.0 and SAML 2.0, and can federate users from LDAP or Active Directory, so an existing AD forest can stay the user store while Keycloak handles application SSO. The cost is operational. Production needs an external relational database, with PostgreSQL 14 to 18 among the supported options, and high availability needs a synchronously replicated database. Your team owns upgrades, certificates, backups and the database. The answer depends on two questions: where your identities already live, and who will run the platform. If your Linux and Kubernetes team can operate a stateful service, Keycloak fits. If nobody has run one, a hosted option or a Windows-first path may carry less risk. Check the supported database and deployment options on the Keycloak site.
Which of AD FS, Okta or Keycloak fits each scenario
This table matches each common scenario to the platform that fits it best and states the condition that makes that fit hold. Read each row as a starting point: the why column tells you what to confirm in your own environment before you choose. Okta fits vendor-run SaaS SSO, Keycloak fits self-hosted control, and AD FS is mainly a bridge for existing Windows estates.
| Scenario | Best fit | Why |
|---|---|---|
| Existing Windows Active Directory estate that federates on-premises apps | AD FS, as a bridge only | Holds when apps already trust AD FS and you can plan a move to Entra ID, which Microsoft recommends. |
| SaaS-heavy workforce that accepts vendor-run SSO | Okta | Holds when you accept vendor-run operation and per-user monthly billing, and you confirm the cell and sub-processor locations for your data. |
| Legacy apps without federation support | Okta, with Access Gateway | Holds when the apps can sit behind a reverse proxy inside your firewall and you buy the Enterprise suite, which adds Access Gateway. |
| B2B customer logins | Keycloak, if you run the identity service | Holds when you need brokering to each customer's identity provider and can confirm multi-customer features in the release you deploy. |
| Platform team must keep identity in its own cloud accounts or data centers | Keycloak | Holds when your team can run a relational database, upgrades and high availability, as Keycloak needs a database in production. |
| Small team with few identity staff | Okta, on a vendor-run service | Holds when you accept per-user monthly billing with a $1,500 annual minimum (Okta pricing page) and no in-house identity operations. |
| Active Directory users who need OIDC or SAML for modern apps | Keycloak, with AD as the user store | Holds when Active Directory stays the source of users and Keycloak reads it through LDAP or Active Directory federation. |
What is licensed, paid and bundled for each platform
AD FS is a Windows Server role, so you do not buy it as a separate product. Its cost follows the Windows Server editions, the number of servers in the federation farm, and the Active Directory domain that hosts them. Microsoft's AD FS overview highly recommends migrating to Microsoft Entra ID, so plan the budget with that path in mind.
- Windows Server licensing: Every AD FS server must join the same AD DS domain and runs on Windows Server, so the edition and server count set the licensing base. Confirm current Windows Server license terms with Microsoft for your core counts and virtualization.
- Extranet proxy: Extranet access requires the Web Application Proxy role service, which cannot share a computer with a federation server, so an extranet design adds at least one more server.
- Database for larger farms: A farm on the Windows Internal Database supports up to 30 federation servers and 100 relying party trusts. Larger farms need SQL Server, a separate licensing decision to confirm with Microsoft.
- Hardware floor: Microsoft lists 2 GB RAM and 32 GB disk as the minimum, and 4 GB RAM and 100 GB disk as recommended, for each AD FS or Web Application Proxy server.
- Lifecycle: Windows Server 2025 became available on November 1, 2024, with mainstream support ending November 14, 2029 and extended support ending November 15, 2034 (Microsoft Lifecycle), so align your renewal plan to those dates.
Before you compare totals, check the Windows Server edition, server count, SQL Server need and your Entra ID migration path against your own estate.
Okta sells Workforce Identity suites per user per month, billed annually, with a $1,500 annual contract minimum according to Okta's pricing page. Okta is a hosted service, so you do not buy a server license, but the suite tier and user count drive the subscription total. Match the contents of each suite against the features your apps and administrators need.
- Starter: Includes Single Sign-On, Multi-Factor Authentication and Universal Directory.
- Essentials: Adds Adaptive MFA, Lifecycle Management and Access Governance, which matter most when joiner, mover and leaver automation or access reviews are in scope.
- Enterprise: Adds API Access Management, Access Gateway and machine-to-machine tokens. Access Gateway is a reverse proxy deployed behind your firewall for on-premises apps without federation support, so include it only if you run those apps.
- Minimum spend: The $1,500 annual minimum applies to small user counts too, so compare it with the per-user total at your headcount.
- Directory connection: Active Directory users reach Okta through the Okta AD agent, which imports users and groups, so count the on-premises components and their administration time in your cost model.
Ask for the per-user rate for each suite, the billing term, and any terms the public pricing page does not show before you sign.
Keycloak is licensed under Apache-2.0, and the upstream project has no license fee, so the license line in your budget is zero. The cost moves to the servers or Kubernetes capacity that run it, a production relational database, and the people who patch and upgrade it. Red Hat build of Keycloak is available for teams that need a vendor-supported distribution.
- Apache-2.0 terms: You may run, modify and redistribute the server under the license in the project's LICENSE file, which your legal team should read before you build on it.
- Production database: Keycloak needs a relational database in production from its supported list. If you choose a commercial engine such as Oracle Database or Microsoft SQL Server, its licensing is a separate cost to confirm.
- Upgrade cadence: Since Keycloak 26.0 the project plans four minor releases a year and says breaking changes in a minor release are opt-in, so budget regular upgrade testing. Keycloak 26.8.1 is the current release, published October 13, 2026.
- Red Hat build of Keycloak: Red Hat's supported distribution, based on the open source project, replaces Red Hat Single Sign-On. Red Hat's product page showed 26.6 as its latest version, so confirm the current version and subscription terms with Red Hat.
- Support: The upstream project is community supported, so any vendor or partner support is a separate contract to price.
Before you treat the license line as zero, confirm the database you will run, who owns upgrades, and whether a Red Hat subscription is needed for your support obligations.
AD FS vs Okta vs Keycloak side by side on capabilities
This table compares where each platform runs, how it reaches internet-facing and legacy apps, where directory data comes from, and how each is hosted, upgraded and located. Read each row as a question to answer for your own environment, and confirm any cell that points you to vendor documentation before you rely on it. The main takeaway: AD FS and Okta depend on Windows infrastructure or vendor-hosted services, while Keycloak keeps every component in your hands but leaves more of the operating work to your team.
| Capability | Microsoft AD FS | Okta | Keycloak |
|---|---|---|---|
| Where it runs | Windows Server role on servers joined to your AD DS domain | Okta-hosted cloud cells, with Access Gateway deployed behind your firewall | Your VMs, containers or Kubernetes, using the server distribution or the Operator |
| Protocol coverage | Confirm current protocol support against Microsoft's AD FS documentation | Confirm current protocol support against Okta's documentation | Documented support for OpenID Connect, OAuth 2.0 and SAML 2.0 |
| Internet-facing and partner access | Extranet access needs the Web Application Proxy role on a separate computer | Access Gateway protects on-premises apps behind your firewall; confirm the partner access model | Brokers logins to external OIDC or SAML identity providers |
| Legacy and on-premises app access | Apps on older protocols go through Application Proxy or Secure Hybrid Access partners | Access Gateway reverse proxy for apps without federation support, using headers, Kerberos or URL-based sign-in | Documented for SAML and OIDC apps; confirm how apps with neither protocol will be fronted |
| Directory sources | Active Directory domains; all farm servers must join the same AD DS domain | Okta AD agent imports Active Directory users and groups into Okta | LDAP or Active Directory user federation |
| Database and high availability | Windows Internal Database for up to 30 servers and 100 relying party trusts; larger farms need SQL Server | Managed by Okta; confirm availability terms and recovery commitments in writing | Relational database required in production; three documented HA designs need synchronous replication |
| Release cadence | Microsoft advises migrating to Microsoft Entra ID over upgrading AD FS | Vendor-managed updates; confirm change notice and upgrade process with Okta | Four minor releases a year since 26.0; current release 26.8.1, published October 13, 2026 |
| Data location | Directory and federation data stay in your AD DS domain and servers | Regional cells; sub-processor processing varies by cell. November 3, 2023 root cause report tied a support-system incident to 134 customers | Your database and infrastructure, in the regions and accounts you choose |
What drives the running cost of each platform
License fees are only part of the bill. Windows Server, the Okta subscription and Keycloak's database and upgrade work each carry different recurring costs, and the last card covers the one-time cost of switching later. Ask every vendor or partner for a written quote that separates one-time work from recurring charges.
Windows Server and AD FS servers
Windows Server licensing applies to every federation and Web Application Proxy server, and whether it recurs depends on your Microsoft agreement. Microsoft lists 2 GB RAM and 32 GB disk as the minimum and 4 GB RAM and 100 GB disk as recommended for each server. The Windows Internal Database limit is 30 federation servers and 100 relying party trusts, so a larger farm adds SQL Server cost. Staff time for patching recurs every cycle. Ask which Windows Server edition and licenses your server count requires, and whether SQL Server is included in the quote.
AD FS requirementsPer-user subscription and suite tier
Okta bills a per-user subscription for Workforce Identity suites, billed annually, with a $1,500 annual contract minimum. Recurring spend rises with user count and with the suite you choose. Starter covers Single Sign-On, Multi-Factor Authentication 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. Ask for per-user rates in writing, with the suite, user count, term and renewal terms stated.
Okta pricingDatabase and operations cost
Keycloak is Apache-2.0 licensed, so the server itself carries no license fee. The recurring cost sits in a relational database, which production requires, with PostgreSQL 14 to 18 among the supported options. A high availability design needs a synchronously replicated database, and the Kubernetes or VM operations behind it are staff time. The project plans four minor releases a year, so each one needs testing before production. Ask partners to price the database license, the replicated database and the operations hours as separate lines.
Keycloak database guideMigration effort and certificate changes
Leaving any of these platforms is a one-time project sized by the number of applications. When the AD FS token-signing certificate changes, every relying party must be updated with the new certificate or its sign-ins fail, so each app needs a planned cutover window. Microsoft's AD FS Migration Readiness Script and the AD FS application activity report in Entra ID show which apps are ready to move. For Okta, the export methods in its support article determine how cleanly active user data moves. Confirm each method against your user count before you plan a bulk migration.
Okta export articleWhat implementing each platform involves in practice
Implementing AD FS starts with the Active Directory layout. Every AD FS server must be joined to the same AD DS domain, so settle which domain will host the farm before anything else. Put Web Application Proxy on a separate computer, because a federation server and Web Application Proxy cannot share one machine, and the proxy carries extranet sign-ins. Inventory every relying party trust before the build. Microsoft's AD FS Migration Readiness Script runs on the AD FS server and reports which apps are ready to migrate, and the AD FS application activity report in Entra ID shows which apps still use the farm. Plan token-signing certificate changes early, because every relying party must receive the new certificate or its sign-ins fail. Keep a current list of each relying party owner. Microsoft also highly recommends migrating to Microsoft Entra ID, so make that decision before you invest in a new farm.
Okta work is mostly connection and configuration. Install the Okta AD agent to import Active Directory users and groups into Okta, then decide which groups should drive app assignments before any app goes live. Configure each application in the admin console and test sign-in with a small pilot group. Applications without federation support need Okta Access Gateway, a reverse proxy deployed behind your firewall that protects them using HTTP headers, Kerberos tokens or URL-based authentication. Treat that deployment as separate infrastructure with its own hosts, network rules and certificates. Access Gateway appears in Okta's Enterprise suite, so confirm with Okta that your edition includes it before you design around it.
Keycloak starts with the database, because production needs a relational one and the default dev-file database is for development only. Keycloak supports PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, so choose the engine your operations team already backs up and patches. Next, pick a high availability design: a single cluster spread across availability zones, or the multi-cluster v2 design. Multi-cluster v1 is deprecated, so do not start there. Both supported designs need a synchronously replicated database. Install the Operator through Operator Lifecycle Manager, which Keycloak recommends, or with kubectl, or run the server on virtual machines. Then configure realms, clients and LDAP or Active Directory federation. Each route needs Kubernetes or virtual machine administration, database administration and load balancer work, and identity engineering for realms and directory federation. Confirm with Keycloak or your Red Hat build provider which database versions your release supports and which design your latency allows.
What the first stages of leaving AD FS involve
The sequence moves applications in order of how easily they can change platforms, keeps sign-ins working during any certificate change, and ends with a register that proves nothing still depends on AD FS. Microsoft highly recommends migrating to Microsoft Entra ID instead of upgrading AD FS, and the steps below apply whether your target is Okta or Keycloak.
Inventory AD FS applications and relying parties
The platform or identity team runs the AD FS Migration Readiness Script on the AD FS server to assess which applications are ready to migrate. It then checks those results against the AD FS application activity report in Entra ID, which shows recent sign-in activity for each application. Build one register listing each relying party trust, its protocol, its owner, and whether users reach it from the internet. This inventory is the starting point whether the target is Okta or Keycloak. The step is done when every relying party trust has an owner, a target platform and a status in the register, and no application is left unassigned.
Move SAML and OpenID Connect applications first
Applications that already use SAML 2.0 or OpenID Connect move first because they have the most direct path to a new platform. Microsoft's migration guidance recommends the same order. For each application, the owner and platform team configure the target, Okta or Keycloak, with matching redirect URIs, attribute mappings and signing settings, then test sign-in with a small pilot group. Keycloak supports both protocols. For Okta, confirm the protocol and configuration details for your edition before you start. The step is done when a pilot user signs in through the new platform and the application accepts the token. Leave the AD FS trust in place until the final step.
Bridge older-protocol applications during the transition
Applications on older protocols cannot move directly to SAML or OpenID Connect, so they need a bridge while they wait for a rewrite or replacement. Microsoft's guidance integrates these applications through Application Proxy or a Secure Hybrid Access partner. If you use the Web Application Proxy role for extranet access, remember that it cannot run on the same computer as a federation server. For the target platform, confirm with the vendor whether it offers an equivalent for legacy apps. Okta Access Gateway, for example, is a reverse proxy deployed behind your firewall for on-premises apps without federation support. The step is done when each legacy app signs in through its bridge and has a named owner in the register for its eventual move.
Update relying parties before changing the signing certificate
Before anyone changes the AD FS token-signing certificate, every relying party must be updated with the new certificate, because any relying party still trusting the old one will fail sign-ins. Use the register from the first step as the checklist, and include applications that are scheduled to move to Okta or Keycloak, since they still depend on AD FS until cutover. Update each relying party, then test sign-in for each application using pilot users. The step is done when the register shows every relying party confirmed on the new certificate and the test sign-ins complete without errors. Schedule the certificate change only after this confirmation.
Decommission AD FS after activity confirms the move
Switch off AD FS only when the activity reports show that no application still sends sign-ins to it. Check the AD FS application activity report in Entra ID against the register, and confirm with each application owner that their app now authenticates through the target platform. Follow Microsoft's AD FS decommission reference for the server and farm steps. Keep the AD FS configuration and a documented rollback path until the register is fully closed. The step is done when no relying party trust remains in active use and the application owners and the identity team have signed off on the register.
Where your identities live decides the first branch
This decision path starts where your identities live today and follows one branch per condition. If Windows Active Directory must federate, AD FS is the current state, and Microsoft recommends migrating to Microsoft Entra ID, so check that move first. If a SaaS-first workforce accepts vendor hosting, the path leads to Okta, and you should confirm the data residency options for your region. If identities must stay in your own cloud accounts or data centers, the path leads to Keycloak, which needs a production relational database. Legacy apps without federation support lead to Okta Access Gateway or a proxy pattern with Keycloak. The diagram maps conditions to options and does not rank them.
The diagram routes identity starting points to the platform options they suggest.
How much effort does each platform need from our team?
How much does Okta cost, and what does the $1,500 minimum mean?
Okta sells Workforce Identity suites priced per user per month and billed annually, with a $1,500 annual contract minimum, according to Okta's pricing page. The minimum is a floor: small deployments pay at least that amount per year, and larger ones pay according to user count and suite. Starter includes Single Sign-On, Multi-Factor Authentication and Universal Directory. Essentials adds Adaptive MFA, Lifecycle Management and Access Governance. Enterprise adds API Access Management, Access Gateway and machine-to-machine tokens. Your team pays the subscription and the internal time to configure it, and DeployOpen's fees follow a written scope. Ask the vendor for a quote that states user count, suite, add-ons, renewal terms, and whether the AD agent and Access Gateway you need are included.
What does running AD FS cost in servers and Windows Server licenses?
Your main costs are the Windows Server licenses, the servers or virtual machines for each role, the Active Directory domain you already run, and staff time. Confirm licensing terms for your edition with Microsoft or your reseller. Sizing follows the farm design. Microsoft lists 2 GB RAM and 32 GB disk as the minimum for each AD FS or Web Application Proxy server, and 4 GB RAM and 100 GB disk as recommended. All AD FS servers must join the same AD DS domain, and the Web Application Proxy cannot share a computer with a federation server, so extranet access adds hosts. A farm on the Windows Internal Database supports up to 30 federation servers and 100 relying party trusts. Larger farms need SQL Server, which adds database licensing and administration. Ask for a sizing review against your relying party count and extranet needs.
What does Keycloak cost to run beyond its zero license fee?
Keycloak is licensed under Apache-2.0, so the software carries no license fee, and the run cost sits in the infrastructure and people around it. Production needs a relational database such as PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database, Amazon Aurora PostgreSQL or Azure SQL, because the default dev-file database is not suitable for production. High availability needs a synchronously replicated database and a load balancer, so budget for database capacity, backups and failover testing. Compute runs either on Kubernetes with the Keycloak Operator or on virtual machines. Staff time covers upgrades. The project plans four minor releases a year, and breaking changes in a minor release are opt-in, but you still need test environments and a change process. A Red Hat subscription is optional if you want a supported distribution. Ask any quote to separate infrastructure, database, operations and upgrade effort.
How long does an identity platform rollout take for our team?
No fixed duration fits every rollout, because the length depends on how many relying parties you have, which protocols they use, and how many depend on proxy or legacy paths. Get the timeline in the written scope before work starts, since DeployOpen agrees scope, deliverables and timelines in writing for most engagements. If you are retiring AD FS, Microsoft's migration guidance says to move apps that use SAML and OpenID Connect first, and to integrate older-protocol apps through Application Proxy or Secure Hybrid Access partners. Microsoft's AD FS Migration Readiness Script runs on the AD FS server and reports which apps are ready to migrate. Token-signing certificate changes require every relying party to be updated, so plan those windows with app owners. Ask that the timeline name the app inventory step, pilot group, cutover and rollback checkpoints.
What skills and people does our team need to run this?
Whichever platform you pick, you need identity administrators who own configuration, client or relying party registrations, claims and admin roles. Keycloak adds database administration for your chosen engine, including backups and replication, plus Kubernetes skills for the Operator or virtual machine administration for the server distribution. AD FS adds Windows Server, AD DS and certificate management, plus Web Application Proxy operation for extranet access. Okta adds the AD agent and, if you use it, Access Gateway behind your firewall. Every relying party also needs an app owner who can confirm claims, test sign-in and approve cutover, because a token-signing change breaks sign-ins for any app that is not updated. DeployOpen can plan, implement, integrate, document and support these platforms under a written scope or retainer, so you can split ownership between your team and a partner. Confirm the run-mode headcount with your architects before you commit.
Is AD FS still a sound long-term choice for our organization?
AD FS remains in use, but Microsoft's AD FS overview says that, instead of upgrading to the latest AD FS version, Microsoft highly recommends migrating to Microsoft Entra ID. Treat AD FS as a transition state unless you have a specific reason to stay, and record that reason for your risk owner. The servers also carry an operating system lifecycle. Windows Server 2025 became available on November 1, 2024, with mainstream support ending November 14, 2029 and extended support ending November 15, 2034, according to the Windows Server 2025 lifecycle page. Map each AD FS and Web Application Proxy host to its operating system and support end date, then schedule replacements ahead of those dates. Confirm with Microsoft which AD FS support applies to each version you run.
Does DeployOpen issue audit reports for our compliance program?
No. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those. DeployOpen prepares systems, controls and evidence for compliance assessments, such as configuration records for SSO, MFA, admin roles, audit logging and access reviews, so the assessor can test them. The evidence differs by platform: AD FS evidence comes largely from Windows Server and AD DS, Okta evidence from its admin console and configuration exports, and Keycloak evidence from your own logging, database and change records. Ask your assessor which controls and evidence they will sample before scoping the work. Ask each platform vendor which third-party assurance reports it provides for its own service.
How DeployOpen helps choose and implement without picking a winner
DeployOpen is a Chainscore Labs company that plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For Microsoft AD FS, Okta and Keycloak, that means mapping your applications, directory and hosting constraints to each option, then implementing the self-hosted option you choose and documenting the rest. The decision stays with you, and the written scope follows it.
How we scope
- Written scope lists the AD FS, Okta or Keycloak applications, directories and farms covered before work starts.
- We map each relying party, SAML or OIDC client and directory source to the platform that would serve it.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any build starts.
How we build
- For Keycloak, we size the production database, which must be relational, and the high availability design before installation.
- For AD FS, we check domain join, server sizing, Web Application Proxy placement and token-signing certificate rollover.
- For Okta, we document how the AD agent and Access Gateway would sit in your network.
How we hand over
- Handover documents the configured protocols, client and relying party inventory, and admin roles for your team to review.
- For Keycloak, handover covers the Operator or server install, realm configuration, database backup and upgrade runbook.
- Evidence packs for access reviews, such as SSO logs, MFA settings and admin change records, are prepared for your auditors.
How we support
- Retainers cover ongoing support, upgrades and continuous testing, agreed separately from the initial written scope.
- Keycloak plans four minor releases a year, so name who tests each upgrade in the retainer.
- For AD FS, ask who tracks token-signing certificate changes and updates every relying party at each change.

