Angular 22 · keycloak-angular 22 · keycloak-js 26

Keycloak + Angular, wired correctly on first run.

The Keycloak SPA kit, built on keycloak-angular with all the decisions already made: the correct bootstrap, silent SSO, the refresh queue, and the realm to match.

~/realmkit-angular
$ docker compose up --build
keycloak  realm auto-imported (clients, roles, demo users)
app       http://localhost:4200
→ log in as demo-admin / demo1234. That's the setup.

Everything the tutorials get wrong, wired correctly

01

The correct SPA bootstrap

provideKeycloak init with check-sso + PKCE S256 — public pages stay public, sessions adopt silently, no redirect loops.

02

The 401 refresh queue

Ten concurrent 401s trigger one token refresh, not ten. Parked requests replay with the new token. The interceptor everyone needs and nobody ships.

03

Silent SSO, actually working

silent-check-sso.html wired and shipped, session-check iframe correctly disabled — third-party-cookie blocking breaks it; this kit doesn't pretend otherwise.

04

Role guards as route data

createAuthGuard with roles declared per route, a /forbidden page, and a full lazy-loaded shell.

05

The realm to match

A working realm export auto-imported on first boot — including the audience mapper that makes API-side aud validation possible. Docs cover your existing Keycloak too.

06

Proven on every push

A scripted end-to-end PKCE login (scripts/e2e-smoke.sh) runs against the compose stack in CI — the product promise, tested continuously.

Pricing

Building the API too?
$58 $49 both kits
✓ Add RealmKit for Node.js — the matching JWKS-verified API
✓ Same realm in both kits — they compose out of the box
✓ Save 15% buying together
Coming soon

Launch pricing — one-time purchase, no subscription.
Paid kits open soon — start with the free tier on GitHub.

What's in the box

CODE

The full Angular app (init, interceptor, guards, shell), Dockerfile + compose, the realm export, four build configurations (dev / docker / uat / production).

DOCS

Architecture & request flow, auth flows (init / refresh queue / silent SSO), the realm export explained — including using your existing Keycloak — a production checklist, troubleshooting by symptom.

DELIVERY

Instant zip at checkout; updates ship as new zips — re-download anytime from your purchase library. Plain-language commercial license: unlimited projects, no resale as a template.

Deep dive first? Read the launch article — it walks the exact failure modes this kit exists to prevent.