Case study: design a login and single sign-on service
Interview question: design login for a company with 50 million users and twenty apps. Sign in once, use them all. If login is slow, every app is slow, and if it's down, everything is down. Where do you start?
In this lesson you'll learn to
- Turn the question into requirements and numbers, and spot that token checks far outnumber logins.
- Design the login path with an OpenID Connect identity provider, password hashing capacity and MFA.
- Let every app verify tokens locally with signed JWTs and published keys, and rotate the keys safely.
- Revoke access quickly with short-lived tokens, refresh checks and an emergency block list.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.