Best identity and SSO platforms for government and public sector

For government and public bodies, Keycloak is often the first open-source SSO option to test because of its protocol coverage and directory federation, while authentik, Zitadel, Authelia and FreeIPA fit narrower situations. This page sets out which option fits which situation, with licensing, operating effort and how to choose.

On this page

Best identity and SSO platforms for government and public sector: which fits which situation

An agency that must put single sign-on in front of many applications, across mixed directories and under audit requirements should judge each option by who will run the identity service and which directories it must reach. This page compares the open-source options for that job, with one verdict per option. Keycloak is the broadest choice: it is Apache-2.0 licensed, supports OpenID Connect, OAuth 2.0 and SAML 2.0, and federates users from LDAP or Active Directory. It fits when your team can run a relational database in production and operate clustering, because the default development database is not suitable for production. See the Keycloak database guide for the supported engines. authentik fits when its providers cover your applications and you accept a paid subscription for its enterprise code, which includes the Microsoft Entra ID and Google Workspace integrations and enhanced audit logging.

Zitadel fits a multi-organization model, where one instance manages several separate organizations, each with its own users. Since v3 its core is licensed AGPL-3.0-only, so have counsel confirm what that copyleft obligation means if you modify the software and offer it to users over a network. Authelia (Apache-2.0) fits web applications behind a supported reverse proxy, where it adds single sign-on and two-factor authentication. It requires HTTPS and does not by itself cover applications that have no proxy in front of them. FreeIPA fits Linux and Kerberos estates: it bundles an LDAP directory, a Kerberos KDC and a certificate authority under GPL-3.0-or-later, and it can trust an Active Directory forest. midPoint fits provisioning only. Evolveum states it is neither an authentication nor an SSO server, so pair it with an access layer such as Keycloak.

Okta, Auth0 and Microsoft Entra ID are the commercial comparisons most agencies will price alongside these options. Check data location before you shortlist them: an Entra ID tenant's data location is set from the country or region chosen at creation and cannot be changed afterward, and Entra is also offered in US government and China clouds. Auth0 offers a Private Cloud deployment for customers who need isolation, and Okta Access Gateway is a reverse proxy deployed behind your firewall for on-premises apps. Confirm pricing and terms in writing for the edition you need. The assessor decides what evidence is acceptable for your audit, so ask them early which logs, configuration exports and access reviews they will accept from a self-hosted or a commercial platform.

Which identity and SSO platforms for government fit each scenario

This table matches common government identity scenarios to the platform that fits best, why it fits, and the condition under which it stops fitting. Read each row against your existing directory and hosting rules before shortlisting, because the directory you already run often decides more than the protocol list does. The main takeaway is that one platform rarely covers every scenario, so most agencies will combine a directory, an SSO server and possibly a proxy-based layer.

ScenarioBest fitWhy it fitsStops fitting when
One agency with an existing Active DirectoryKeycloak, federating users from Active DirectoryKeycloak federates users from LDAP or Active Directory and provides OpenID Connect and SAML 2.0 for applications.Accounts must be created and removed across downstream systems, where a provisioning layer such as midPoint is needed.
Platform serving several agencies that manage their own usersZitadel, with one organization per agencyZitadel organizations are comparable to tenants, so multiple organizations can run in one instance.AGPL-3.0 obligations in Zitadel v3 and later conflict with your hosting or distribution plans (confirm with counsel).
Web apps with no SSO supportAuthelia, behind a supported reverse proxyThe proxy asks Authelia whether each request is allowed, and unauthenticated users go to its login portal.Apps are not served over HTTPS, or the reverse proxy is not on Authelia's supported list.
Linux estate with KerberosFreeIPACombines a 389 Directory Server LDAP directory, an MIT Kerberos KDC for single sign-on and a Dogtag certificate authority.Windows domains remain the core directory, so the cross-forest trust with Active Directory must be confirmed first.
Microsoft 365 and Entra ID estateMicrosoft Entra ID, where Microsoft 365 is already licensedEntra ID Free comes with Microsoft 365 and covers MFA and SSO to SaaS apps.Tenant data location is fixed at creation and cannot change, so confirm the region before tenant setup.
Team that wants managed operationsOkta or Auth0 as a managed service, or open source with a DeployOpen retainerOkta Starter covers SSO, MFA and Universal Directory, and Auth0 offers Private Cloud for isolation.Data must stay in your own infrastructure, since Okta processing locations vary by sub-processor and cell.

What each open-source identity option is for, and its license

These six options differ in license, architecture and purpose, so the right one depends on whether you need a web SSO provider, a directory or a provisioning engine. Several of these projects have changed their license terms or edition structure in recent years, so confirm the current terms before you shortlist.

Keycloak for standards-based SSO

Keycloak is licensed under Apache-2.0 and covers OpenID Connect, OAuth 2.0 and SAML 2.0, with brokering to external identity providers and user federation from LDAP or Active Directory. It fits when one self-hosted provider must serve many applications, including SAML-only ones, and your team can run a relational database in production. Check the supported database list, the upgrade plan (the project plans four minor releases a year) and the operator model for your platform.

Current release
26.8.1
Keycloak admin guide

authentik for a flexible provider

The core of authentik is MIT licensed, but code under authentik/enterprise is under a separate enterprise license, which is not open source, and production use of that code needs a paid subscription. Choose authentik when you want OAuth2, OpenID Connect, SAML, LDAP, RADIUS and proxy providers on PostgreSQL, and your deployment can stay on the MIT core. If you need Entra ID or Google Workspace integrations, mTLS client certificates or enhanced audit logging, those features sit in the paid tier, so price them before you depend on them.

Current release
2026.8.4
authentik license file

Zitadel for multi-tenant products

Since Zitadel v3, the core is licensed under AGPL-3.0-only, while APIs, SDKs and Helm charts stay Apache 2.0, and a commercial license is offered. Its organizations model suits a shared platform where each agency or customer manages its own users inside one instance. Its event-sourced store keeps every change as an event, which helps with audit questions. Check with counsel whether AGPL obligations fit your use, and confirm the PostgreSQL 14 to 18 range and your high-availability plan.

Current release
v4.19.5
Zitadel licensing terms

Authelia for proxied web apps

Authelia is licensed under Apache-2.0 and works as a companion to a reverse proxy: the proxy asks Authelia whether each request is allowed, and unauthenticated users go to its login portal. It is the right choice when your applications are web apps behind a supported proxy such as Traefik, Caddy, NGINX or HAProxy, and you want two-factor authentication without a full identity provider. It only serves HTTPS because its session cookies require it. Confirm the user backend and any federation need before you rely on it across many systems.

FreeIPA for Linux directory and Kerberos

FreeIPA is licensed under GPL-3.0-or-later and bundles a 389 Directory Server LDAP directory, an MIT Kerberos KDC and a Dogtag certificate authority. It fits when Linux servers and workstations need central accounts, Kerberos single sign-on and internal certificates. It can establish a cross-forest trust with an Active Directory domain on Windows Server 2008 R2 or later, so AD users can reach Linux resources. Check which Linux distribution you will run it on and whether your target systems support Kerberos.

Newest repository tag
release-4-13-4
FreeIPA about page

midPoint for provisioning and governance

midPoint is licensed under EUPL-1.2 or later and has no enterprise edition, so every line of code is open source, while Evolveum sells subscriptions for support. Evolveum classifies midPoint as an identity management system and states it is neither an authentication server nor an SSO server. Choose it to provision accounts into target systems and to run identity governance, and pair it with Keycloak or another provider for sign-in. Check the release line you select, since 4.8 is the long-term support line.

Current maintenance release
4.10.5
Evolveum FAQ

Keycloak can keep staff logins inside the agency network

The flow starts when a staff member opens an agency application inside the trust boundary. The application redirects the browser to Keycloak over OpenID Connect or SAML 2.0. Keycloak then checks the user either through LDAP or Active Directory federation inside the agency network, or by brokering the login to an external OpenID Connect or SAML identity provider, which sits outside the boundary. After authentication, Keycloak returns a token to the application. Confirm that Keycloak's configuration and session data sit in a production relational database, and that audit logs are written to a location your security team controls.

Keycloak checks staff logins against the agency directory or a brokered external provider.

Capabilities of the open-source SSO options side by side

This table compares Keycloak, authentik, Zitadel, Authelia and FreeIPA on protocols, directory federation, brokering, tenant model, production database, deployment, audit trail and license. Read each row across to see what each project documents, and treat every item marked confirm as a question for the project before you shortlist it. The main takeaway is that license terms and paid tiers differ widely, and FreeIPA is aimed at Linux and Active Directory directory needs.

PlatformProtocols and directoryTenancy, brokering and databaseLicense, deployment and audit
KeycloakOpenID Connect, OAuth 2.0 and SAML 2.0. Federates users from LDAP or Active Directory. Confirm the AD trust setup with the project.Brokers to external OIDC or SAML providers. Tenant model: confirm. Production needs PostgreSQL 14 to 18 or another supported relational database.Apache-2.0. Operator for Kubernetes and OpenShift, installed via Operator Lifecycle Manager or kubectl. Audit trail: confirm with the project.
authentikOAuth2 and OpenID Connect, SAML, LDAP, RADIUS and proxy providers. Active Directory federation: confirm with the project.Brokering and multi-organization model: confirm with the project. Configuration and data stored in PostgreSQL.Core under MIT. Code in authentik/enterprise needs a paid subscription for production. Enhanced audit logging is Enterprise only. Runs as server and worker containers.
ZitadelOpenID Connect, OAuth 2.0, SAML 2.0 and device authorization grant. Directory and Active Directory federation: confirm with the project.Organizations act as tenants; several can run in one instance, suited to B2B products. Brokering: confirm. Self-hosted database: PostgreSQL 14 to 18.AGPL-3.0-only from v3, with a commercial license offered. Event-sourced audit trail of all changes. Deploys as binaries, Compose or Kubernetes.
AutheliaCompanion that answers reverse proxy auth requests, with a login portal. Protocols and directory federation: confirm with the project.Multi-organization model and brokering: confirm with the project. Database: confirm with the project. Session cookies require HTTPS.Apache-2.0, current release v4.39.28 (September 17, 2026). Supported proxies include Traefik, Caddy, NGINX and HAProxy. Audit trail: confirm with the project.
FreeIPALDAP directory (389 Directory Server), Kerberos single sign-on and a Dogtag certificate authority. Cross-forest trust with Active Directory. Web SAML or OIDC: confirm.Brokering and tenant model: confirm with the project. Directory data is held in 389 Directory Server.GPL-3.0-or-later. Packaged for Fedora, Debian, CentOS and Red Hat Enterprise Linux as Identity Management. Audit trail: confirm with the project.

Which options are open source and which paid features matter for government

Read the license on the exact code you will deploy, because open-source and paid code often share one product. Keycloak is published under Apache-2.0, authentik's core under MIT, Zitadel's core under AGPL-3.0-only, and FreeIPA under GPL-3.0-or-later. These are all OSI-approved licenses. midPoint is under EUPL-1.2 or later, and Evolveum states it has no enterprise edition. The exceptions need attention. Code in authentik's authentik/enterprise directory falls under a separate license and needs a paid subscription for production use, as described in the authentik LICENSE file. Zitadel offers a commercial license alongside AGPL-3.0. Red Hat build of Keycloak is a supported distribution of the Keycloak project, sold as a subscription. Okta, Auth0 and Microsoft Entra ID are hosted services, so you license access to them and cannot self-host their code.

The paid line for authentik sits inside the codebase. Its pricing page lists Enterprise at $5 per user per month billed annually plus $0.02 per external user per month, with Enterprise Plus starting at $20k annually. The enterprise-only list includes Google Workspace and Microsoft Entra ID integrations, mTLS client certificate authentication, privileged access management, password history, enhanced audit logging and ticket-based support for subscriptions over $1k. If your assessor expects certificate-based authentication or detailed audit trails, map each one to a specific control requirement before assuming the free core covers it. If your directory of record is Entra ID or Google Workspace, that integration is a paid item. Ask the vendor how users and external users are counted in a quote.

What running each option asks of your team

Keycloak asks your team to run a relational database as a production service. The default development file database is unsuitable for production, so the team owns a supported engine (PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database or Amazon Aurora PostgreSQL), its backups and its failover design. On Kubernetes or OpenShift, the Keycloak Operator is installed through the Operator Lifecycle Manager, which Keycloak recommends, or with kubectl.

  • Database operations: Schema upgrades, connection capacity, backups and restore tests sit with your database team, so name an owner before go-live.
  • Operator lifecycle: Track the Operator version and the Keycloak release it deploys together, and test each step in a non-production cluster first.
  • Upgrade cadence: Since Keycloak 26.0, the project plans four minor releases a year, and breaking changes in a minor release are opt-in. Schedule routine patching as a standing task.
  • Skills assumed: Kubernetes or OpenShift administration, database administration, and working knowledge of OIDC and SAML client configuration for each relying party.
  • Change control: Export realm and client configuration to version control and review changes before applying them, because the admin console makes edits easy to make without a record.

Before committing, confirm which database engine your standards already support and read the Keycloak Operator installation guide for the cluster path you plan to use.

How to choose and pilot a government SSO platform

This sequence moves a government SSO choice from application inventory to a supported production cutover. Each step names an owner and a written output, so security, compliance and the assessor can review the decision before any user moves. Set the pilot length from your own scope.

  1. Inventory applications and their login protocols

    The identity team and application owners list every application that will move to central sign-on. For each one, record the protocol it speaks (OpenID Connect, OAuth 2.0, SAML 2.0, LDAP, Kerberos or RADIUS), its hostname, its user population and whether the vendor can federate at all. Applications with no federation support need a different path, such as a reverse proxy, so flag them now. The step closes when every application has an owner, a protocol and a documented exception list.

  2. Confirm the directory and trust model

    The directory team documents where users and groups live and which system is the source of truth. Map whether the platform will read from Active Directory or LDAP, whether Entra ID is in scope, and how any cross-forest or cross-domain trust is set up. Keycloak can federate users from LDAP or Active Directory, and FreeIPA can establish a trust with an Active Directory domain, so confirm with the vendor which design fits before committing. The step closes with a signed trust diagram and a list of groups that map to application roles.

  3. Fix the hosting boundary and data location

    The security and compliance lead, with the infrastructure team, decides where the identity store, its database, logs, backups and administrative consoles run. Self-hosted options such as Keycloak, authentik and Zitadel run in your own cloud account, data center or air-gapped network, which keeps that decision with you. Commercial services need the same questions answered in writing: an Entra ID tenant's data location is set when the tenant is created and cannot be changed later, and Okta's sub-processor processing location can vary with the cell you select. The step closes with a signed data location record that names every system holding identity data.

  4. Check which features sit behind paid editions

    Procurement and the platform lead list every required feature and check it against the edition that includes it. authentik's pricing page places Google Workspace and Microsoft Entra ID integrations, mTLS client certificate authentication, privileged access management and enhanced audit logging in its Enterprise tier, so those needs change the cost of the open source core. Auth0's private deployment and 99.99% SLA are Enterprise only, and Entra ID capabilities beyond the free tier sit in P1, P2 or Entra Suite licensing. Get a written quote for each edition, user count and support term. The step closes with a feature matrix signed off by the budget owner.

  5. Pilot one application with break-glass access

    The platform team and one application owner pilot a single, low-risk application with a test group. They test the login path, MFA, group-to-role mapping and session expiry, then test the break-glass account: a local administrator held under dual control, used only when the identity provider fails, and logged every time it is used. Confirm that audit events reach your log platform, and check what your edition records, since enhanced audit logging is an Enterprise feature for authentik. Set the pilot length from your own scope and agree it in writing. The step closes with a pilot report listing each test, its result and any open defect.

  6. Agree the evidence list with the assessor

    The compliance lead agrees with the assessor which evidence will be shown, in what format and for what period, before any user moves. Typical items include configuration exports, MFA and access-policy settings, group membership reviews, audit log samples, backup and restore results, change records and vendor license documents. DeployOpen can prepare and organize this evidence, but independent auditors and certification bodies issue any audit report or certification, so the assessor's view sets what counts as sufficient. The step closes when the assessor confirms the list in writing and each item has an owner and a storage location.

What do public sector teams ask before choosing identity and SSO platforms?

Is the open-source license the main cost of self-hosting an identity platform?

The license is often the smallest line in the budget. Keycloak is Apache-2.0 and the authentik core is MIT licensed, so the recurring costs are infrastructure, a production database and staff time. Infrastructure covers application nodes, load balancing, backups and a separate test environment. Keycloak needs a relational database in production, and its dev-file database is not suitable for production, so the database is a planned cost. Staff time covers patching, upgrades, monitoring and incident response. Paid subscriptions are optional. The authentik pricing page lists an Enterprise edition with per-user and per-external-user charges, and Red Hat offers a supported build of Keycloak. Ask any vendor for a written quote that covers user counts, external users and support tier.

How long does a pilot for an SSO platform take?

No supplied figure applies to every environment, so confirm the duration in writing before you accept a timeline. The length of a pilot depends mostly on the number of applications to integrate, since each SAML or OpenID Connect app needs client registration, attribute mapping and testing. Directory federation from LDAP or Active Directory adds work, as do MFA and access policy decisions, legacy identity sources and the number of test cases your assessor expects. Approval cycles for certificates and change requests also set the pace. A pilot with one application and a test directory is narrower than one that must prove federation, logging and failover. Ask for named applications, a test plan and exit criteria in the scope document.

What does the agency need to provide for an identity platform project?

Expect to supply access, certificates, decisions and people before work starts. The main items are:

  • Directory access, usually a service account for an Active Directory domain or LDAP directory, scoped to the attributes and groups the platform needs.
  • Certificates for public and internal hostnames, along with the internal certificate authority chain and any client certificate requirements.
  • Change control, meaning named approvers, production change windows and a route through the agency's change advisory process.
  • Named application owners, test accounts and a sign-off contact for each integration.

Confirm with your security team whether directory access must be read-only and how long certificate issuance takes internally. Those answers often decide the start date more than the software does.

Can a small team run a self-hosted identity platform on its own?

A small team can run one identity platform on its own if it has Linux, database and Kubernetes or container skills and an owner for the service. Every login depends on this system, so someone must own the database, backups, TLS, upgrades, monitoring and on-call response. Keycloak supports installation through the Operator with the Operator Lifecycle Manager or kubectl, which assumes cluster experience. Zitadel recommends its official Helm chart for high availability on Kubernetes, and authentik runs a server and a worker container backed by PostgreSQL. Ask whether your team has already completed a production upgrade of the chosen platform. DeployOpen implements, hardens, backs up, upgrades and supports self-hosted platforms in your infrastructure, and ongoing support is available as a retainer, so you can keep ownership in-house and buy specific help.

Does an open-source license satisfy public sector procurement or accreditation?

An open-source license does not by itself satisfy procurement or accreditation. The assessor and the authorizing body decide that for your system. Procurement rules and accreditation frameworks look at the whole system: who operates it, where data is held, how access is granted and logged, how vulnerabilities are patched and what evidence exists. The license only answers whether you may use and modify the code. Ask your assessor early which evidence they accept, such as configuration baselines, audit log samples, access review records and patch history. Have counsel review copyleft terms, such as AGPL-3.0 for Zitadel's core. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work.

How does Keycloak's upgrade cadence affect planning?

Keycloak plans four minor releases a year, so upgrades are a recurring workload that appears several times each year, and you should budget for them from the start. Since Keycloak 26.0, the project has also planned a major release every two to three years and says breaking changes in a minor release will be opt-in. Keycloak 26.8.1 is the current release, published October 13, 2026. Plan a production-like test environment, a database migration check, a review of the upgrade guide for each release and a rollback path. The Keycloak blog post on backwards compatibility explains the policy. Ask any implementation partner whether upgrades sit inside the fixed scope or under a retainer.

How DeployOpen scopes SSO selection and implementation

DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source identity platforms inside your own cloud accounts, data centers or air-gapped networks. For government and public sector teams, the work starts with a written scope that sets out which platform fits your directory, protocols and review evidence before any build begins.

How we scope

  • Agree which identity sources, such as Active Directory or LDAP, must federate before choosing a platform.
  • Record the protocols each application needs, including OpenID Connect, OAuth 2.0 and SAML 2.0, in the written scope.
  • Confirm which licensing tier, such as a paid enterprise edition, your agency needs for required features.

How we build

  • Deploy the chosen platform in your cloud account, data center or air-gapped network with a production database.
  • Connect SSO to the directory, federate users and configure brokering to each external identity provider the agency uses.
  • Set access control, MFA, admin roles and audit logging so your security and compliance teams can review them.

How we hand over

  • Document the configuration, realm or tenant layout, client registrations and admin procedures in the agreed deliverables.
  • Run verification of login, logout and MFA flows against the written scope before handover.
  • Prepare the evidence your independent auditor will ask for, such as configuration records and access settings.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Plan upgrades around the vendor's release cadence, such as Keycloak's planned minor releases, and test before rollout.
  • Write the upgrade and security patch process into the retainer scope before go-live.

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.