Keycloak is an open-source, self-hosted identity and access management server that adds single sign-on, OpenID Connect, SAML and social login to apps.
Keycloak gives applications one central place to sign users in, so each app hands authentication to a server instead of storing passwords itself. A user signs in once to reach every connected application, and signing out once ends those sessions too. Keycloak is a Cloud Native Computing Foundation project, accepted at the Incubating level in April 2023 and developed in the open by the Keycloak Authors. It speaks OpenID Connect, OAuth 2.0 and SAML 2.0, so any app with a client library for one of them can use it. Administrators work in the Admin Console, where separate realms keep users, clients, roles and settings apart. Identity Brokering accepts sign-ins from an existing OpenID Connect or SAML 2.0 provider, and Social Login adds Google, GitHub, Facebook or Microsoft accounts with no change to the app. User Federation syncs users from LDAP and Active Directory, and a Kerberos bridge carries a desktop login through to the browser. Protocol mappers and client scopes shape the claims each app receives, and Authorization Services add fine-grained permissions where roles fall short. In the Account Console, users update their profile, change passwords and set up two-factor authentication with OTP or WebAuthn. The server suits teams that can operate their own identity infrastructure: platform and DevOps engineers, developers adding sign-in to their own products, and organisations that keep staff in a directory. It fits a company that wants many internal web apps behind one login, and a software team that needs an authorization server for its APIs. Keycloak runs on the team's own infrastructure, so the same people install it, configure it and apply each release. Optional capabilities are switched on per server, such as the Workflows engine, which is still experimental and edited as JSON. A typical deployment puts Keycloak in front of a company's web applications, with an Apache server running mod_auth_openidc or a WildFly application passing its login to the realm. Partner organisations sign in through their own identity provider, and the first login flow creates a local account at that first brokered sign-in. Security teams set idle and maximum session lengths, and one action signs out every active session in a realm. Staff on Kerberos desktops in Active Directory or FreeIPA environments reach browser apps without typing a password again. Keycloak serves teams that want single sign-on and identity brokering on a server they host, theme and extend themselves.
Pricing
-
Open source, self-hosted
Free
- Apache License 2.0, no paid tiers
- Single sign-on and single sign-out
- Identity brokering and social login
- User federation from LDAP and Active Directory
- Admin console and account console
- Themes for login, account and email pages
- Hosted, run and upgraded on your own infrastructure
- No vendor SLA; the licence provides the software as is
Features
- Included: SAML 2.0 identity provider
- Included: OpenID Connect identity provider
- Not included: Pre-configured SSO connectors for popular apps
- Not included: Password vaulting for apps without federation
- Not included: End-user app launcher portal
- Included: Desktop SSO from a domain-joined device
- Not included: Mobile SSO for native apps
- Not included: Group-based app assignment
- Included: IdP-initiated and SP-initiated flows
- Included: Custom attribute mapping and claims
- Included: Federation with external identity providers
- Not included: Per-app sign-on policies
- Included: Session timeout and global sign-out
- Included: Custom-branded employee sign-in page
- Not included: Sign-in activity reports
- Included: Just-in-time user creation on first login
- Not included: Free tier for small teams
- Not included: Uptime SLA published
Additional Features
- Single sign-out across connected apps
- Identity Brokering with OpenID Connect and SAML 2.0 providers
- Social Login with Google, GitHub, Facebook and Microsoft
- User Federation from LDAP and Active Directory
- Kerberos desktop sign-on bridge
- X.509 client certificate authentication
- Admin Console for realms, clients and roles
- Account Console for profiles, passwords and two-factor setup
Best for
- Platform and DevOps teams that run their own identity server
- Developers adding single sign-on or social login to their own apps
- Organisations that keep their users in LDAP or Active Directory
- Companies putting many internal web apps behind one sign-in
- API teams that need an OAuth 2.0 authorization server
- Teams that want identity software they host, extend and theme themselves
- Kerberos environments wanting browser sign-in from the desktop login
Use cases
- Single sign-on across a company's internal web apps
- Accepting sign-ins from a partner's SAML or OpenID Connect provider
- Adding Google, GitHub or Microsoft login to an app
- Federating users from LDAP or Active Directory
- Passing a Kerberos desktop login through to browser apps
- Issuing OAuth 2.0 tokens to protect APIs
- Adding OTP or WebAuthn second factors to sign-in
- Branding login and account pages with custom themes
- Creating accounts at a user's first brokered sign-in
- Signing out every active session from the admin console
Screenshots & Videos
Explore Keycloak in action
User Reviews
Compare with Similar Software
Click to compare side by side with Keycloak