# Keycloak

> A free, open-source login service. You run it yourself, and it signs users in to your apps.

**Field:** Software Development  
**Category:** Auth  
**Also known as:** Red Hat build of Keycloak, Keycloak Server

## Think of it like

It is like a front desk you build in your own house. You keep all the keys.

## Definition

Keycloak is a free, open-source identity provider that you run on your own servers. It logs users in for your apps, so no app needs its own login page. It speaks OpenID Connect, OAuth 2.0 and SAML. It also handles second factors, social logins and user roles. It began at Red Hat. In 2023 it joined the CNCF, the group that also looks after Kubernetes.

## Example

Jack's hospital must keep staff logins on its own machines. It runs Keycloak in a container, and its ten apps all sign in through it.

## Why it matters

Teams get single sign-on without paying per user or sending logins to an outside firm. The price is that they must run, patch and back it up themselves.

## Common mistake

Leaving it in dev mode once it goes live. Dev mode is only for testing. A real setup needs its own database and HTTPS.

## Three principles

- **Self-hosted.** It runs on your own servers.
- **Speaks the standards.** OpenID Connect, OAuth 2.0 and SAML.
- **Open source.** Free under the Apache 2.0 license.

## Related terms

- [Identity Provider (IdP)](https://learn.benibix.com/term/development/identity-provider)
- [OpenID Connect (OIDC)](https://learn.benibix.com/term/development/openid-connect)
- [Security Assertion Markup Language (SAML)](https://learn.benibix.com/term/development/saml)
- [Auth0](https://learn.benibix.com/term/development/auth0)
- [Open Source Software](https://learn.benibix.com/term/development/open-source)

![Jack clicks Sign in and is sent to an identity provider, lit up, which checks his password and second factor. Arrows marked a signed token run from it to three apps: a mail app, a chat app and a wiki. A note says each app checks the token's signature and lets Jack in with no password of its own.](https://learn.benibix.com/diagrams/dev2-identity-provider.svg)

---

Source: https://learn.benibix.com/term/development/keycloak
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
