What is Keycloak?
Keycloak is free, open-source sign-in software. It gives many applications one shared login with multi-factor authentication, and developers often use it to add a proper login to custom software.
Talk to an engineer Knowledge base
What it does
Keycloak started at Red Hat and runs on your own servers, in a container or on Kubernetes. An application sends people to Keycloak to sign in and gets back a confirmed identity, so the application never stores passwords itself. It is one kind of identity provider.
For a business the gain is single sign-on: each person has one account for every connected application, two-step sign-in is enforced in one place, and disabling one account removes a leaver's access everywhere.
Useful features
- Sign in with Microsoft: Keycloak can pass the login on to Microsoft 365, so staff use the account they already have.
- Existing directories: it can read users from Active Directory instead of keeping a second copy of every account.
- Separate user groups: one installation can keep staff and customer logins completely apart.
Keycloak or Authentik
Authentik covers the same ground. Keycloak is the older project and the usual pick when developers build login into their own software. Authentik is easier when you want to put a login page in front of an existing web tool that has none.
Where it fits our work
We build custom business software, and login is the part that should follow a published standard instead of being written from scratch. Our staff-account work in Microsoft 365 covers accounts and two-step sign-in, and self-hosted tools on Linux and Docker can then use those same Microsoft accounts.
Related services
Kubernetes consulting
Clusters for self-hosted services and their configuration.
Microsoft 365
Entra ID, MFA and conditional access for staff accounts.
Network security
Remote access, MFA and segmentation with someone watching.
Learn more
- Keycloak documentationGuides on running the server, connecting applications and upgrading, written for administrators.
- Keycloak websiteThe project's home, with downloads, release news and getting-started guides.
- Keycloak on WikipediaA neutral overview of the project and its history at Red Hat.
- How OpenID Connect worksThe OpenID Foundation's explanation of the sign-in standard Keycloak and Authentik use.
Related guides
KubernetesIdentity providersMicrosoftAuthentikLinuxDockerSingle sign-on (SSO)Microsoft Intune
Adding login to your own software?
Tell us what the application does and who signs in to it. We will outline how standards-based sign-in would fit.
Start a conversation