Keycloak Tutorial: 15 Free Hands-On Labs
Keycloak has 15 free hands-on labs on this site: 0 beginner, 14 intermediate and 1 advanced. The most common subjects are Authentication (2), Authentication & OAuth (2) and OAuth & tokens (2), and the labs have you practise things like step-up authentication. A typical lab takes about 60 minutes, and the list starts with the easiest, Create users the moment they sign in. They sit mostly in Identity & Access Management.
15 labs, easiest first
- Automate the joiner-mover-leaver identity lifecycle (and understand what SCIM is really doing)
- Create users the moment they sign in: Just-in-Time provisioning with Keycloak identity brokering
- Delegate without handing over the keys: OAuth 2.0 Token Exchange (RFC 8693) in Keycloak
- Federate an app with SAML 2.0 — and read the assertion off the wire
- Log in a device with the OAuth 2.0 device flow
- Log users out everywhere: OIDC RP-Initiated and Back-Channel Logout
- Protect an app with Keycloak single sign-on (OpenID Connect)
- Put SSO in front of an app that has no login — oauth2-proxy and Keycloak
- Require stronger auth for sensitive actions: step-up authentication with Keycloak
- Rotate refresh tokens and revoke sessions with Keycloak
- Run the OAuth 2.0 Authorization Code flow with PKCE by hand
- Run the OAuth 2.0 Client Credentials flow (machine-to-machine) against Keycloak
- Set up single sign-on with Keycloak
- Stop token theft with DPoP: bind an OAuth token to a key so a stolen token is useless
- Authenticate a user out-of-band with OIDC CIBA
Cheat sheets
Tool documentation
Certifications
Interview preparation
Lab catalog
Related topics
- Free Identity & Access Management Labs: 117 Hands-On
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
Related
- Automate the joiner-mover-leaver identity lifecycle (and understand what SCIM is really doing)
- Create users the moment they sign in: Just-in-Time provisioning with Keycloak identity brokering
- Delegate without handing over the keys: OAuth 2.0 Token Exchange (RFC 8693) in Keycloak
- Federate an app with SAML 2.0 — and read the assertion off the wire
- Log in a device with the OAuth 2.0 device flow
- Log users out everywhere: OIDC RP-Initiated and Back-Channel Logout
- Protect an app with Keycloak single sign-on (OpenID Connect)
- Put SSO in front of an app that has no login — oauth2-proxy and Keycloak
- Require stronger auth for sensitive actions: step-up authentication with Keycloak
- Rotate refresh tokens and revoke sessions with Keycloak
- Run the OAuth 2.0 Authorization Code flow with PKCE by hand
- Run the OAuth 2.0 Client Credentials flow (machine-to-machine) against Keycloak
- Set up single sign-on with Keycloak
- Stop token theft with DPoP: bind an OAuth token to a key so a stolen token is useless
- Authenticate a user out-of-band with OIDC CIBA
- Free Identity & Access Management Labs: 117 Hands-On
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
- Keycloak cheat sheet
- Keycloak official documentation
- Identity & Access certifications and free study routes (5 listed)
- Identity & Access Management interview preparation
- All Keycloak labs with filters
- Plain-English glossary
- Free cyber labs