
authentik
Self-hosted identity provider for SSO protocols
authentik centralizes authentication with SAML, OAuth2, OIDC, LDAP, RADIUS, and related flows. It targets small labs through production clusters you deploy yourself.
Microsoft Entra ID by Microsoft is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Microsoft Entra ID is Keycloak, with 38.1k GitHub stars. Other open-source alternatives to Microsoft Entra ID are authentik, Ory and Zitadel. Most Microsoft Entra ID alternatives here are Identity & Access Management (IAM) tools. The first 1 say in their own README or website that they can replace Microsoft Entra ID (the quote is shown under each one); the other 3 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.

Self-hosted identity provider for SSO protocols
authentik centralizes authentication with SAML, OAuth2, OIDC, LDAP, RADIUS, and related flows. It targets small labs through production clusters you deploy yourself.
“Our enterprise offering is available for organizations to securely replace existing IdPs such as Okta, Auth0, Entra ID, and Ping Identity for robust, large-scale identity management.”
These projects don't call themselves a Microsoft Entra ID alternative, but two independent checks of their own description found they do the same main job.

Identity and access management for applications and services
Keycloak adds authentication and single sign-on to applications so they do not store or verify users themselves. It supports standard protocols and central admin tools.
“Keycloak - the open source identity and access management solution. Add single-sign-on and authentication to applications and secure services with minimum effort.”

OpenID Connect and OAuth2 authorization server
Ory Hydra is an OAuth 2.0 and OpenID Connect server that issues and validates tokens and orchestrates login and consent flows. It connects to existing identity systems through a separate login and consent application.
“Ory delivers identity and access management (IAM) for applications, enterprises, and AI agents. Cloud-native, API-first, and self-hostable.”

Multi-tenant API-first open-source identity and access management platform
ZITADEL is an open-source identity and access management platform with SSO, MFA, passkeys, OIDC, SAML, and SCIM. You can self-host it or use the hosted cloud service with the same codebase.
“Whether you're securing a SaaS product, building a B2B platform, or self-hosting a production IAM stack — ZITADEL gives you everything out of the box: SSO, MFA, Passkeys, OIDC, SAML, SCIM, and a battle-tested multi-tenancy model.”
Yes. 4 open-source projects can replace Microsoft Entra ID, for example Keycloak, authentik and Ory. 1 of them says so in its own documentation; the other 3 do the same job.
Keycloak (38.1k GitHub stars) is the most popular open-source alternative to Microsoft Entra ID on GitHub. The best choice depends on your needs: compare them side by side, for example Keycloak vs authentik.
All of the 4 projects listed here are free to use under an open-source license, with no license fee: 3 permissive (such as Apache-2.0), 1 copyleft (such as AGPL-3.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.