Skip to content

Intro & Setup

Keycloak is an open-source Identity and Access Management (IAM) server. It handles authentication, Single Sign-On (SSO), and authorization for your applications using industry standards: OpenID Connect (OIDC), OAuth2, and SAML. Instead of building login forms, password hashing, token handling, and MFA in every app, you delegate all of that to Keycloak.

  • Intro & Setup (this module)
  • Realms, Clients & Roles
  • Users, Groups & Credentials
  • OIDC & OAuth2 Flows
  • Securing Apps
  • Tokens, Scopes & Mappers
  • Identity Federation & Social Login
  • Admin, Theming & Production

Every Keycloak workflow follows the same four-step loop:

  1. Run Keycloak with Docker
  2. Open the admin console
  3. Create a realm and register a client
  4. Secure your app using OIDC
flowchart TD
  A[Docker run Keycloak] --> B[Admin console]
  B --> C[Create realm + client]
  C --> D[Secure your app with OIDC]
The setup-to-secure flow
LessonWhat you will learn
What is Keycloak?Core concepts, protocols, and where Keycloak fits in your architecture
Run with DockerStart Keycloak locally and log in to the admin console
Admin Console TourNavigate realms, clients, users, and roles in the UI
Dev vs ProductionDifferences between start-dev and production mode
What is Keycloak?
Which standard protocols does Keycloak support for authentication?
What is the benefit of using Keycloak instead of building auth yourself?