This question evaluates a candidate's ability to design resilient, secure authentication and authorization flows that tolerate unreliable third-party token services, testing competencies in distributed systems architecture, security engineering, reliability, API design, and operational engineering.
You are designing a multi‑region, HTTP/JSON API where clients must obtain an access token from a third‑party authorization service before calling your main API. The third‑party service is intermittently unreliable: it may return malformed responses, time out, or fail.
Assume:
Design an end‑to‑end request flow that is resilient and secure. Explicitly cover:
Be explicit about security controls (key management, token handling, storage, and transport security), and call out trade‑offs and pitfalls.
Login required