OAuth2 Authorization Code + PKCE Flow: 2D Sequence Diagram
Interactive 2D sequence-diagram simulator of the OAuth 2.1 Authorization Code flow with PKCE: watch every redirect, authorization code and token-exchange message step across live lifelines for Browser, Client App, Authorization Server and Resource Server, computing the real SHA-256 code_verifier/code_challenge pair, with a live stolen-code interception attack to show why PKCE and single-use codes matter.
This simulator renders the OAuth 2.1 Authorization Code flow with PKCE as a live 2D message-sequence diagram between four real actors — the user's browser, the client application, the authorization server, and the protected resource server — computing the actual SHA-256 code_verifier/code_challenge pair with the browser's own WebCrypto API rather than faking it. Step through or auto-play every protocol message as arrows down the diagram, then flip on a stolen-authorization-code attack to see, message by message, exactly why PKCE's proof-of-possession check blocks token theft that would otherwise succeed against a bare Authorization Code flow — and why single-use codes mean a successful theft also locks the legitimate client out.
A 2D message-sequence-diagram simulator of the OAuth 2.1 Authorization Code flow with PKCE, computing the real SHA-256 code_verifier/code_challenge pair and showing a live stolen-code interception attack.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install