Problem Statement: One Login, Five Hundred Apps, One Trust Anchor
Frames the SSO portal as the organizational trust anchor: a single highly available identity service that every application delegates authentication to.
Problem statement
Design a Single Sign-On (SSO) portal that gives every user of an organization one central login for hundreds of cloud and on-premises applications. After one authentication event at the portal, users move between applications without re-entering credentials. The portal issues OIDC tokens and SAML 2.0 assertions carrying role-based and attribute-based claims, federates with external identity providers and social logins, and optionally provides centralized session management including single logout.
This is not a feature of one app. It is the authentication backbone of the entire organization. If the SSO portal fails, nobody signs in to anything: email, payroll, customer consoles, VPN, CI/CD. If it is compromised, every application is compromised at once. The design therefore optimizes for two invariants before anything else: (1) the portal must stay available under regional outage and traffic stampedes, and (2) every token and assertion it issues must be verifiable, bound to the right audience, unforgeable, and revocable in spirit even when stateless.
Why the problem is distinctive
A normal web service can return a 503 and let the user retry. An SSO portal during the 9 AM login stampede cannot: thousands of applications redirect to it simultaneously, each user's browser holding a half-finished protocol state machine (OAuth authorization code flow, SAML redirect binding). Losing that state mid-flow strands users in protocol limbo. The portal must therefore combine durable protocol state (authorization grants, SAML request IDs, pending MFA challenges) with stateless, verifiable outputs (signed JWTs and SAML assertions that resource servers can validate without a round trip).
Second, the portal is a multi-protocol bridge. Modern apps speak OIDC. Enterprise SaaS speaks SAML 2.0. Legacy on-prem apps speak LDAP, Kerberos, or WS-Federation. Contractors arrive through external IdPs. The portal must translate between these protocol worlds while presenting one consistent identity: the same person, the same roles, the same MFA posture, regardless of which protocol the downstream app speaks.
Third, the portal is a high-value target. Credential stuffing against its login page, authorization-code interception, token replay, signing-key compromise, consent phishing, and session hijacking are all amplified because one breach reaches every app. Security controls — short-lived tokens, rotating signing keys, PKCE, audience binding, replay detection, anomaly-based step-up — are architecture, not afterthoughts.
Public operating baseline versus design assumptions
Public evidence shows the category operates at enormous scale. Microsoft reports Entra ID (formerly Azure AD) processes billions of authentications per day across hundreds of millions of organizations. Okta reports serving tens of thousands of enterprise customers and billions of authentications monthly. Google's identity platform underpins billions of accounts and originated OAuth 2.0 (RFC 6749, co-authored by Google engineers). These are cited public figures for context, not targets for our fictional system.
For capacity planning, this answer explicitly assumes a mature enterprise SSO deployment with 2 million employees and contractors, 500 integrated applications, 400,000 interactive sign-ins per day, a 9 AM stampede peak of 2,000 interactive authentications per second, 10,000 token-service operations per second sustained, and 100,000 session/cache reads per second. Unless a number is tied to a citation, it is a stated design assumption, target, or budget.
The four architectural planes
- Protocol plane: OIDC/OAuth2 endpoints, SAML endpoints, WS-Federation/LDAP bridges, protocol state machines, redirect validation.
- Identity and policy plane: user directory, group and role resolution, MFA/risk-based step-up, consent, federation brokering, SCIM provisioning.
- Trust plane: signing and encryption keys, JWKS publication, key rotation, certificate metadata, token introspection and revocation.
- Operations plane: audit logging, anomaly detection, incident response, compliance reporting, availability engineering.
A strong interview answer keeps these planes separate. The protocol plane may degrade (a bridge to a legacy system fails) without weakening the trust plane, and the trust plane's key rotation must never silently invalidate sessions in a way the operations plane cannot see.
Key Highlights
- •The SSO portal is the org's trust anchor: one outage blocks every sign-in, one compromise reaches every app.
- •It must combine durable protocol state (grants, request IDs, MFA challenges) with stateless verifiable outputs (signed JWTs, SAML assertions).
- •Multi-protocol bridging — OIDC, SAML 2.0, WS-Federation, LDAP — must present one consistent identity and policy posture.
- •Public figures (Microsoft's billions of daily authentications, Okta's billions of monthly authentications) set context; every uncited number here is an explicit assumption.
- •Four planes: protocol, identity/policy, trust (keys), operations.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate authentication availability from token validation: apps must keep validating cached keys even if the portal degrades."
- "Before choosing components, let me define which flows are interactive, which are machine-to-machine, and which must survive a regional outage."