Microsoft AD FS vs Clerk

AD FS fits workforce sign-in through an on-premises Active Directory estate, and Clerk fits hosted authentication for web apps. The right choice turns on who signs in, where data may sit, and who will run the servers.

On this page

Microsoft AD FS vs Clerk: which fits your login problem

AD FS fits on-premises Windows federation, and Clerk fits hosted authentication for applications. The choice turns on four questions: who signs in, where the data may sit, who operates the servers, and how many enterprise SSO connections you need. If your staff sign in through Active Directory and federation must stay inside your Windows estate, AD FS matches that model, but it carries its own operating load. An AD FS farm needs federation servers joined to the same AD DS domain, and extranet access depends on Web Application Proxy, which cannot run on the same computer as a federation server. Changing the token-signing certificate also means updating every relying party, or their sign-ins fail. Microsoft highly recommends migrating to Microsoft Entra ID, so before you commit to an AD FS upgrade, test that recommendation against your own timeline and application list.

Clerk fits a product team that needs login and enterprise SSO for its own web app, where most people signing in are customers and Clerk runs the service. Pricing is metered by monthly retained users, with 50,000 included per app on every listed plan. Enterprise SSO connections are the second meter: Pro and Business include one connection per app, and the pricing page lists $75 per month for each of connections 2 to 15. Count the enterprise customers who need SAML or OIDC before you estimate that line. The data question matters just as much. Clerk's security page states that it offers no regional data residency or region selection, that data is hosted on US infrastructure, and that EU, UK and Swiss personal data is transferred under the Data Privacy Framework. If your rules require data to stay in a specific region, confirm that with your compliance team before any build work starts.

Neither product is the right answer for every buyer. AD FS can be a poor fit if you have no Windows Server operations team, need federation in an isolated network, or cannot keep the farm current. Clerk can be a poor fit if data must stay on premises or in a region Clerk does not offer. Before you choose, write down four facts: the population that signs in, the data location and transfer rules that apply, the team that will patch and manage certificates on the servers, and the number of SSO connections you expect over the planning period. Those answers decide which option fits. The self-hosted section covers open-source identity providers as a third option, along with the cost and exit questions that follow from each choice.

When Microsoft AD FS vs Clerk fits each scenario

This table compares Microsoft AD FS with Clerk across six common scenarios, naming the better fit and the condition under which it wins. Read each row against your own directory, hosting and region requirements, since the answer changes when any one of them changes. The main takeaway: AD FS suits on-premises workforce federation and existing Web Application Proxy estates, while Clerk suits hosted SSO for a web app's customers when US hosting is acceptable.

ScenarioBetter fitWhy
Staff sign in to internal apps through an existing Active Directory domainMicrosoft AD FSWins when sign-in must use existing domain accounts and groups, which AD FS reads directly.
Product team adds SSO for enterprise customers to a web appClerkWins when each customer needs its own SAML or OIDC connection and per-connection fees on Clerk's pricing page fit the plan.
Data must stay in a specific regionMicrosoft AD FS on in-region serversWins when residency rules need in-country hosting. Clerk states it offers no region selection and hosts data on US infrastructure.
Small team that does not want to run identity serversClerkWins when no one will operate Windows Server farms, proxies and certificates, and US hosting is acceptable.
Extranet publishing through Web Application ProxyMicrosoft AD FSWins when apps already publish through Web Application Proxy. The proxy works with an AD FS farm and cannot share a server with the federation server.
Microsoft estate already moving toward Entra IDNeither as the end stateUntil apps move, AD FS stays as a bridge. Microsoft highly recommends migrating to Entra ID. This page does not compare Entra ID.

Decision path: which product, or a self-hosted route, fits your login

The path starts with who signs in: workforce accounts in Active Directory or customers of your application. A workforce login that must stay on-premises reaches a check on whether your team can run and patch servers. If it can, AD FS or a self-hosted option may fit, but Microsoft recommends migrating to Microsoft Entra ID, so check cloud sign-in first. Customers whose data can sit on US infrastructure can go to Clerk, which offers no regional data residency option. Customers with regional requirements go to a self-hosted route such as Keycloak, ZITADEL or authentik. If one team signs in both groups, follow each branch separately.

Who signs in comes first, then data location and server operations decide the route.

Microsoft AD FS vs Clerk: capabilities side by side

This table compares Microsoft AD FS, a federation role in Windows Server that your team operates, with Clerk, a hosted authentication service for web apps. Read each row as a question to answer for your environment, and treat cells marked to confirm as open items for the vendor. The main takeaway is that the difference lies in who operates the infrastructure, where data sits and what availability commitment you receive.

CapabilityMicrosoft AD FSClerk
Primary purposeFederation server role in Windows Server for single sign-on to internal and internet-facing appsHosted authentication and user management for web apps, with enterprise SSO connections
ProtocolsSAML and OpenID Connect are the modern protocols Microsoft's migration guidance moves first; older protocols use Application Proxy or partnersSAML, OIDC and EASIE enterprise SSO connections, with one included per app on Pro and Business
MFAThird-party MFA plugs in through an extensible mechanism, with no certification program from MicrosoftMFA and passkeys start on the Pro plan; the Hobby plan excludes them
Directory integrationAll AD FS servers must join the same AD DS domainConfirm whether Clerk reads from or syncs with an on-premises directory beyond Directory Sync connections
Extranet accessRequires the Web Application Proxy role; third-party proxies must support MS-ADFSPIPSign-in runs on Clerk's hosted service, so no proxy role runs in your network. Confirm how Clerk handles private applications
HostingRuns on Windows Server in your own data centers or cloud accounts, under your controlUS infrastructure on Google Cloud and Cloudflare, with no regional residency or region selection
Uptime commitmentNo vendor uptime commitment; availability depends on the farm, load balancers and patching your team runsEnterprise plan lists a 99.99% uptime SLA; confirm its terms and exclusions before relying on it
ClaimsUserInfo returns only the subject claim, so extra claims go into custom ID tokensConfirm which claims Clerk tokens and userinfo responses contain and how to add custom claims

How Clerk bills and what AD FS costs in its place

Clerk bills on three meters: a plan fee, monthly retained users above the included allowance, and enterprise SSO connections. AD FS is bundled into the Windows Server estate, so its cost sits in server licensing, SQL Server, hardware and staff time. Each card below covers one bill or cost component and what to check before you compare totals.

Clerk plan tiers

Clerk's pricing page lists Hobby at no charge, Pro at $25 per month or $20 billed annually, Business at $300 per month or $250 billed annually, and Enterprise at custom pricing. Every listed plan includes 50,000 monthly retained users per app, so the plan fee is only part of the bill once your user count grows. Hobby leaves out MFA, passkeys and Clerk branding removal, which start on Pro, so check which features your AD FS replacement requires before you pick a tier.

Clerk pricing page

Clerk retained user overage

Above 50,000 monthly retained users per app, Clerk charges $0.02 per user up to 100,000, $0.018 up to 1,000,000, $0.015 up to 10,000,000 and $0.012 above that. Because the allowance applies per app, confirm with Clerk how a user who signs in to several apps is counted. Ask whether the tiers apply to the whole monthly count or only to users above the allowance, then model your expected monthly retained users against them.

Clerk enterprise SSO connections

Pro and Business include one enterprise SSO connection per app, which can be SAML, OIDC or EASIE. Connections 2 to 15 cost $75 per month each, connections 16 to 100 cost $60 each, and Directory Sync connections use the same tiers. Directory Sync billing starts January 1, 2027, so a budget set now should already include it. List every identity provider each app must trust, including any AD FS trust you move across, because each one beyond the included connection adds to the monthly bill.

AD FS cost components

AD FS has no license line of its own, so its cost comes from the infrastructure it runs on. The main components are Windows Server licensing for federation servers and Web Application Proxy servers, SQL Server once a farm passes the Windows Internal Database limits of 30 federation servers or 100 relying party trusts, hardware sized to Microsoft's minimums and recommendations, and the staff who patch servers, renew the token-signing certificate and update each relying party. Ask Microsoft or a reseller for the licensing terms that apply to your server count, edition and SQL Server needs.

AD FS requirements

Self-hosted Keycloak costs

Keycloak is licensed under Apache 2.0, so the software itself carries no license fee. The recurring costs are servers or cluster nodes, the database, the staff who run upgrades and backups, and any support subscription you choose. The realm export command has documented limitations as a backup method and requires all nodes to be stopped while it runs, so plan a database backup alongside it. Ask any support provider which Keycloak versions and what response targets they cover before you compare totals.

Keycloak repository

Pricing for authentik editions

Most of authentik's code is MIT licensed, while the code in its enterprise directory falls under a separate license. The Open Source edition is free with community support only, Enterprise is $5 per user per month billed annually plus $0.02 per external user per month, and Enterprise Plus starts at $20k annually. Enterprise adds Google Workspace and Microsoft Entra ID integrations and privileged access management, so check which of those your estate needs before you pick an edition.

authentik pricing

What running each option costs your team week to week

Running AD FS means operating a Windows federation farm. Every AD FS server must be joined to the same AD DS domain, and Web Application Proxy servers, which handle extranet access, cannot share a computer with a federation server, so your team patches and monitors at least two separate server roles. 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 farm database is a standing decision: the Windows Internal Database supports up to 30 federation servers and 100 relying party trusts, and larger farms need SQL Server, which is one more platform to patch and license. The task that causes the most disruption is a token-signing certificate change, because every relying party must receive the new certificate or its sign-ins fail. Plan those rollovers as scheduled change windows, and add routine Windows patching on every node to the weekly load.

Clerk is hosted, so your team does not patch servers or operate a database. The weekly work is configuration: defining applications, confirming the plan tier, setting up enterprise SSO connections and running user exports when you need a copy of your user base. The bill is a subscription, and staff time is the other cost. Track the plan gates closely. MFA and passkeys start on Pro, and Hobby excludes them. Enterprise adds the 99.99% uptime SLA, log sinks, a HIPAA BAA and onboarding and migration support. Each app gets one enterprise SSO connection on Pro and Business, and Clerk's pricing page lists $75 per month for each of connections 2 to 15, so SSO growth changes the subscription. Directory Sync connections use the same tiers and billing starts January 1, 2027, so review them before then. The CSV export from Settings, User exports includes hashed passwords, so store it under the same controls as your credential data.

A self-hosted option moves those duties to your team. For Keycloak that means the database, backups, certificates, clustering and upgrades. Keycloak realm exports are JSON files, and the Keycloak import and export guide warns that export and import have limitations as a backup and restore mechanism and that all nodes must be stopped while the process runs, so you need a separate database backup plan. Upgrades are a recurring cost: since Keycloak 26.0 the project plans four minor releases a year, and breaking changes in minor releases are opt-in, so someone must test and schedule each one. The effort this adds depends on your staffing, the number of relying parties and your on-call model, and your own engineers should confirm it before you compare totals.

Where your data sits and what leaving each product involves

Four questions decide how much work leaving either product involves: where identity data is held, how cleanly users and trust configurations can be exported, what the plan or server setup ties you to, and the order in which applications can move. The cards below take each question in turn.

Where identity data sits

AD FS runs on servers you operate inside your own domain, so identity records stay wherever you place them. Clerk is hosted on US infrastructure at Google Cloud and Cloudflare, with all subprocessors in the USA, and it offers no region selection. EU, UK and Swiss personal data moves under the Data Privacy Framework. Clerk states it has reported SOC 2 Type 2 since May 6, 2022, on Business and above. Independent auditors issue that report, and DeployOpen does not.

Clerk security page

Exporting users and relying parties

Clerk admins can export users from the dashboard under Settings, User exports, and the CSV includes hashed passwords, so the destination must accept that format. For AD FS, start by inventorying relying party trusts with the AD FS Migration Readiness Script, which runs on the AD FS server, and the AD FS application activity report in Entra ID. Together they show which trusts still see sign-ins. Exports carry the user records, but claim rules must be rebuilt at the new provider.

Clerk export docs

Plan tiers and AD FS configuration

Clerk features are gated by plan tier. MFA and passkeys start on Pro, and Enterprise adds migration and onboarding support, so ask whether that help is included before you commit to a move. AD FS ties you to claim rules and to relying party configuration linked to certificates. When the token-signing certificate changes, every relying party must receive the new certificate or its sign-ins fail.

Clerk pricing page

Sequencing the exit

Microsoft's guidance moves apps that use modern protocols, such as SAML and OpenID Connect, first. Apps on older protocols are handled through Application Proxy or Secure Hybrid Access partners, so inventory those separately before scheduling cutover. Before you leave Clerk, confirm the destination accepts Clerk's hashed password format, or plan a password reset for affected users. Keep AD FS running until each relying party works on its new provider.

Microsoft migration stages

When Keycloak, ZITADEL or authentik fits better than both

Keycloak fits best when federation has to stay inside your network and the Active Directory users already in place must keep signing in. It is licensed under the Apache License 2.0 and is a Cloud Native Computing Foundation incubating project. It supports OpenID Connect, OAuth 2.0 and SAML 2.0, and it has built-in user federation with existing LDAP and Active Directory servers, so the directory can stay where it is while Keycloak issues the tokens. The current release is 26.8.1, published October 13, 2026. Because the supported protocols do not include WS-Federation, list every AD FS relying party and confirm which ones use WS-Federation before you choose it.

Choose ZITADEL when the main need is multi-tenant customer identity. Its code is licensed under AGPL-3.0, with Apache 2.0 and MIT exceptions for specific directories, so have counsel confirm which license applies to each component you deploy or modify. It supports certified OIDC, SAML 2.0, SCIM 2.0 and LDAP, and self-hosts with Docker Compose or Kubernetes on PostgreSQL 14 or later. Its tenants are structured as Identity System, Organizations and Projects, with data and policies isolated at several levels. authentik suits a team that wants one self-hosted product for SSO, LDAP, RADIUS and proxy access. Its open-source core is MIT licensed, while the enterprise directory sits under a separate authentik EE License. The free edition offers community support only, and Microsoft Entra ID and Google Workspace integrations are Enterprise features, so confirm which of them your estate needs before you plan around the free edition.

Each of these options moves the operating work to your team, so name the owner before the first relying party moves. The owner covers the database, high availability, certificates, upgrades and backups. Keycloak's import and export guide describes realm export as limited for backup and restore, and it requires all nodes to be stopped while the export runs. Treat a tested database backup and a rehearsed restore as the primary control, and schedule any export around a maintenance window. Keycloak plans four minor releases a year and says breaking changes in a minor release will be opt-in, so build your patch test cycle around that cadence. DeployOpen plans, implements, hardens, backs up, upgrades and documents such a deployment inside your infrastructure under a written scope agreed before work starts.

What a move from AD FS or Clerk involves, step by step

The sequence moves sign-in from AD FS or Clerk to a self-hosted identity provider app by app, so each application is tested before its users leave the old service. Each step produces a record that the next step relies on, and the old service is retired only after the pilot passes. Before starting, confirm that each application has a named owner, an identity administrator is available, and test accounts exist for each user group.

  1. Inventory every relying party and application

    List every AD FS relying party trust or Clerk application with its users, protocol, claim rules, certificates and actual usage. On AD FS, Microsoft's AD FS Migration Readiness Script runs on the AD FS server to show which apps are ready to migrate, and the AD FS application activity report in Entra ID shows sign-in activity. The application owner confirms the business purpose and who depends on the app, and the identity administrator checks the list against the directory. Done when each application has one row with an owner, a protocol and a known user group, and any app with no owner or no recent use is flagged for a keep or retire decision. See Microsoft's AD FS decommission reference.

  2. Choose the destination and confirm protocols

    Select the self-hosted identity provider and test it against the inventory. For each protocol in the inventory, confirm support in the product documentation, including the MFA methods your users rely on and the connection to your existing directory. For Keycloak, the project documents OpenID Connect, OAuth 2.0 and SAML 2.0, plus user federation with Active Directory, and any WS-Federation application needs its own confirmation. Record the results in a table with each gap marked as an open question for the vendor or project. Done when every protocol and MFA need has a documented match or a named exception with an owner.

  3. Export users and trust settings

    Export what the destination needs. In Clerk, an admin opens Settings, then User exports in the dashboard, and the downloaded CSV includes hashed passwords (Clerk's import and export guide). For AD FS, record each relying party's trust settings, claim rules and certificate details, since user accounts stay in Active Directory. Store the exports in an approved location with access limited to the identity team, because hashed passwords and claims are sensitive. Then import a sample file into the destination and confirm that the password hash format and claim mapping work there. Done when a test account from each group signs in with its imported credentials and receives the expected claims.

  4. Move modern-protocol applications first

    Move applications that use SAML or OpenID Connect first. Microsoft's migration guidance puts these ahead of apps on older protocols, which may need a different path. For each app, the owner points the application at the new identity provider, and a test account signs in through the new path while the old path stays available. Applications that stay on AD FS for now need a certificate plan, because when the token-signing certificate changes, every relying party must be updated or its sign-ins fail. Done when each moved app has a passing test sign-in, owner sign-off and a written rollback path.

  5. Run a pilot group in parallel

    Pick a small group of users from each application and let them sign in through the new identity provider, while everyone else stays on the old service. Test accounts cover what pilot users may not reach: MFA enrollment, password reset, a disabled account, and a user whose group membership changes access. The identity administrator watches sign-in logs on both sides, and each owner compares the claims the app receives with the claims recorded in the inventory. Done when the pilot users have completed their normal work, owners have signed off, and every sign-in failure has a recorded cause.

  6. Cut over and retire the old service

    Switch each application to the new identity provider in the order the pilot passed, then disable the old path once sign-ins through it stop. For AD FS, follow the decommission reference to remove the farm and Web Application Proxy roles, and remove each relying party trust only after that application is confirmed on the new provider. For Clerk, close the subscription after cutover and confirm with your compliance team how long the last export and configuration records must be kept. Done when activity reports show no sign-ins on the old service, the old service is switched off, and the archive is stored under the agreed retention rules.

Questions buyers ask before comparing Microsoft AD FS and Clerk

How do Microsoft AD FS and Clerk costs compare, and what drives each bill?

Clerk bills for usage and features, while AD FS costs are mostly servers, Windows Server licensing and the staff who run them. Clerk's pricing page lists a Hobby plan at no charge, Pro at $25 per month or $20 billed annually, and Business at $300 per month or $250 billed annually, with 50,000 monthly retained users included per app on each listed plan. Beyond that allowance, the per-user rate steps down from $0.02 to $0.012 as volume grows, and each enterprise SSO connection beyond the first per app adds $75 per month for connections 2 to 15. For AD FS, the drivers are the Windows Server licenses and client access licenses for each federation and Web Application Proxy server, SQL Server once the farm outgrows the Windows Internal Database, certificate management, patching and staff time. Ask a Microsoft licensing partner to price your exact server and client counts, and ask Clerk which plan your user volume and SSO connection count require.

Does Microsoft's recommendation to move to Entra ID change the choice?

It changes the starting point, because Microsoft recommends migrating to Microsoft Entra ID as the route forward for AD FS. If Entra ID can cover your applications, sign-in methods and data location, it is the path Microsoft supports and it deserves a fair evaluation alongside Clerk and self-hosted options. If your federation must stay on-premises, in-country or inside an isolated network, Entra ID is unlikely to fit, and the question becomes what replaces AD FS on infrastructure you control. Entra ID is also a cloud service, so the hosting and residency questions in this comparison apply to it too. Before deciding, check which relying parties use WS-Federation or other older protocols, whether Entra ID licensing matches your user counts, and whether your auditors accept a cloud identity provider for the systems in scope. Clerk is built for web application login, so it covers a different part of the estate than a workforce federation server does.

Can Clerk meet a data residency requirement if it has no region selection?

Based on Clerk's published security page, Clerk may not meet a requirement that personal data stays in a specific country or region, because the page states Clerk does not offer regional data residency or region selection. Clerk says data is hosted on US infrastructure on Google Cloud and Cloudflare, with all subprocessors in the USA. For EU, UK and Swiss personal data, Clerk says transfers are made under the Data Privacy Framework. Whether that satisfies your legal and contractual obligations is a decision for your privacy and legal teams. Ask Clerk for its current subprocessor list, its transfer documentation and any written commitment covering your region, and confirm the answers before signing. AD FS runs on servers you place in your own data center or cloud region. A self-hosted option such as Keycloak or authentik runs wherever you deploy it, and DeployOpen plans and implements those deployments inside your infrastructure.

What drives the migration effort, and how long does it take?

The effort depends mostly on how many relying parties you run and which protocols they use, so no reliable duration exists until you have an inventory. Microsoft advises moving applications that use SAML or OpenID Connect first and handling older protocols through Application Proxy or partner integrations, so each app's protocol changes its work. Other drivers include the claim rules each relying party depends on, which must be rebuilt in the new provider, and the token-signing certificate, because every relying party must receive the new certificate or its sign-ins fail. Credentials and multi-factor enrollments also need a plan. Clerk can export users to CSV, but the file includes hashed passwords, so confirm what can be imported and how users re-enroll. Start with Microsoft's AD FS Migration Readiness Script and the AD FS application activity report in Entra ID to see which applications are in use and ready to move. Ask any provider for a written plan tied to that inventory, with the timeline built from the app count and protocol mix.

What does the work need from our team, and can we do it internally?

Your team needs identity administrators who understand directories and sign-in flows, application owners who can test each relying party, network and certificate staff, and a security sign-off on the final design. For AD FS, many Windows teams already have these skills, but the exit adds a relying party inventory, claim translation and a cutover plan for each app. For Clerk, developers integrate its SDK into each web application, and an administrator manages roles, SSO connections and user data. A self-hosted replacement adds Linux operations, database administration, backup and upgrade routines, and a named owner for security patches over time. A capable internal team can do this, particularly if it has run identity platforms before. To test capacity, list who would own each task and how much time they can give it, then compare that with the scope you agree. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms inside your infrastructure under a fixed scope agreed in writing, and offers retainers for ongoing support.

Does DeployOpen issue compliance reports for our identity platform?

No, DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those and decide which evidence they accept. DeployOpen prepares the systems, controls and evidence those assessments need, such as configuration records, access control settings, audit logging, backup procedures and runbooks for a self-hosted platform in your own infrastructure. The vendor's own assurance also matters for a Clerk comparison. Clerk states it has been SOC 2 Type 2 certified since May 6, 2022, and that the report is available on its Business plan and above. Request that report directly, and confirm its scope covers the services you plan to use. If you choose a self-hosted identity platform, agree the evidence list in writing as part of the fixed scope, then share it with your auditor early so they can confirm which controls they will test.

How DeployOpen helps you choose and implement the identity platform

DeployOpen plans and implements self-hosted identity platforms inside your own infrastructure, so the choice between Microsoft AD FS, Clerk and an open-source option is made against your written requirements. The work starts with the questions your compliance and security teams will ask, so the evidence is ready when they do.

How we scope

  • The written scope names each application, login flow and user directory that moves to the new identity platform.
  • For Microsoft AD FS, it lists relying party trusts, protocols, claim rules and the certificates each one depends on.
  • Fixed-scope engagements, with deliverables and timelines agreed in writing before work starts; ongoing support is available as a retainer.

How we build

  • We deploy the chosen server, such as Keycloak or authentik, in your cloud account, data center or air-gapped network.
  • We integrate SSO with existing directories, configure SAML and OpenID Connect clients, and set up MFA and access control.
  • We set up audit logging and data handling controls so your compliance and security teams can review the platform.

How we hand over

  • Security testing covers the login flows, token handling, admin settings and access paths before any users are moved.
  • Deliverables include configuration documentation, a migration plan for each relying party, and a findings report with recommended fixes.
  • Evidence is prepared for compliance assessments, while independent auditors and certification bodies make the determinations.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the platform is live.
  • Backup, upgrade and operating procedures are documented in the handover so your own team can run them.
  • Confirm the upstream release and security schedule of your chosen server before the upgrade plan is written.

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.