Lion Cipher Lab

Build a SCIM 2.0 provisioning endpoint from scratch (the deprovision plane)

Why it matters

The single most dangerous account in any breach report is the one that should not exist any more: the contractor who rolled off in March, the engineer who was let go on Friday but whose VPN and SaaS logins still worked on Monday. Orphaned accounts are the classic foothold — no owner watching them, no laptop that got wiped, often no MFA re-enrollment, and full access to whatever they had on their last day. The fix is not a better quarterly access review; it is AUTOMATED PROVISIONING, and the open standard the whole industry uses for it is SCIM (System for Cross-domain Identity Management).…

What you'll learn

Steps in this lab

  1. What SCIM is, and who is calling whom
  2. The User resource — RFC 7643's required shape
  3. Set up the project and install Express
  4. Write the SCIM server — schemas, errors, and bearer auth
  5. Start the server
  6. Prove auth first — the endpoint is a directory, guard it
  7. Create a user (the joiner) — POST returns 201 + Location
  8. Read and FILTER — how the IdP looks a user up
  9. The security heart — PATCH active=false to DEPROVISION the leaver
  10. DELETE — and why you usually should NOT
  11. The judgment layer — SCIM vs. JIT, PATCH vs. PUT, and idempotency
  12. What you built — and the reflex to keep

Open the full interactive lab →